Omnimaga

Calculator Community => TI Calculators => Calculator C => Topic started by: compu on February 21, 2011, 02:18:58 pm

Title: Tool to Convert BMP into C array
Post by: compu 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 :-\
Title: Re: Tool to Convert BMP into C array
Post by: apcalc on February 21, 2011, 02:41:45 pm
http://www.cemetech.net/projects/basicelite/sourcecoder2.php
Title: Re: Tool to Convert BMP into C array
Post by: compu on February 21, 2011, 02:46:41 pm
Lol thanks, that's exactly what I was looking for :)
Title: Re: Tool to Convert BMP into C array
Post by: fb39ca4 on February 21, 2011, 08:58:02 pm
When did sourcecoder add that feature?
Title: Re: Tool to Convert BMP into C array
Post by: apcalc 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 :)
Title: Re: Tool to Convert BMP into C array
Post by: fb39ca4 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.
Title: Re: Tool to Convert BMP into C array
Post by: apcalc 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.
Title: Re: Tool to Convert BMP into C array
Post by: fb39ca4 on February 21, 2011, 09:31:26 pm
Good point.
Title: Re: Tool to Convert BMP into C array
Post by: DJ Omnimaga 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.