gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > when converting images

#67314 - radicalrandy - Mon Jan 16, 2006 11:09 pm

Does anybody know how to make a bin image file for reading in C code with the Nintendo DS?

#67323 - Linkiboy - Tue Jan 17, 2006 12:34 am

I don't know how to make a bin file, but if you're talking about a program that converts bitmaps into files that can be used with C coding in DS Dev, use http://gbadev.org/download.php?section=gfx&filename=bmp2spr.zip

#67327 - radicalrandy - Tue Jan 17, 2006 1:14 am

On the example programs that comes with DEVKITPRO there are images that are read and they are called BIN files. I'm wondering how I would convert a regular image that I made in photoshop into one of these BIN files so that I can show this in 2D or use it as a texture.

#67367 - dovoto - Tue Jan 17, 2006 2:29 pm

Several of the libnds examples take a pcx file directly which just about any graphics app can produce (just be certain it is 256 color pcx).

Otherwise there are about 50 graphics converters for gba that work. I recomend you look in the tools section of www.gbadev.org for some. gfx2gba and kalied have both worked well for me.
_________________
www.drunkencoders.com