Getting RGB values for each pixel from a 24bpp Bitmap for conversion to GBA format in C

后端 未结 8 1519
南方客
南方客 2020-12-16 08:52

I want to read the RGB values for each pixel from a .bmp file, so I can convert the bmp into a format suitable for GBA (GameBoy Advance).

I

8条回答
  •  粉色の甜心
    2020-12-16 09:23

    You might find it useful to look at some C code I wrote many years ago for reading and writing BMP files, located at:

    http://david.tribble.com/src/bmp/bmp.html

    I believe it handles the various pixel bit sizes (1/2/4/8/24) as well as RLE compression.

提交回复
热议问题