Author Topic: Tool to Convert BMP into C array  (Read 16662 times)

0 Members and 1 Guest are viewing this topic.

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Tool to Convert BMP into C array
« on: February 21, 2011, 02:18:58 pm »
Hi, does someone know a tool that converts .bmp files into a C array?
It really sucks to do this manually, especially at larger picutes :-\

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: Tool to Convert BMP into C array
« Reply #2 on: February 21, 2011, 02:46:41 pm »
Lol thanks, that's exactly what I was looking for :)

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: Tool to Convert BMP into C array
« Reply #3 on: February 21, 2011, 08:58:02 pm »
When did sourcecoder add that feature?

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Tool to Convert BMP into C array
« Reply #4 on: February 21, 2011, 08:58:44 pm »
I don't remember exactly when, but I've been using it for months (like, since before Block Dude was released). :)

EDIT:  If anyone ever needs one of these tools that is not on the internet, I can easily make one.  I had to write one anyway for my video player :)
« Last Edit: February 21, 2011, 08:59:29 pm by apcalc »


Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: Tool to Convert BMP into C array
« Reply #5 on: February 21, 2011, 09:29:22 pm »
There's a tool that's been around for a while on TI-bank. It is part of a very early image viewer program, but there was a thread for it here with a download. It is called bmptoc.

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Tool to Convert BMP into C array
« Reply #6 on: February 21, 2011, 09:30:03 pm »
There's a tool that's been around for a while on TI-bank. It is part of a very early image viewer program, but there was a thread for it here with a download. It is called bmptoc.

bmptoc is not really that great anymore, as it does not compress the picture data into hex code, making the images double the size that they actually have to be.


Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: Tool to Convert BMP into C array
« Reply #7 on: February 21, 2011, 09:31:26 pm »
Good point.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Tool to Convert BMP into C array
« Reply #8 on: February 22, 2011, 12:06:30 am »
Nice I forgot SC did that kind of conversion. I was sure it mostly covered 83+ stuff.