Advertisement

24bpp to 16bpp

Started by September 15, 2001 07:49 AM
2 comments, last by CodeMaster7 23 years, 2 months ago
anyone knows about a handy converter which converts bitmaps from 24 bit to 16 bit bitmaps? it should be able to convert many bitmaps at once. thanks in advance ps: why? because i made all my graphics in 24 bit and i made the game in 16 bit mode.. okay, it all works, but it looks much better if i convert the bitmaps to 16 bit.
Download NEX7+ today for free!! http://nex7.cjb.net
The problem is, there are hardly any 16 bit bitmap formats. I think TGA (Targa) supports it, but I dunno. I save mine as raw data, and sadly have no converter.
Advertisement
I just have my graphics engine convert it when it reads the BMP onto the surface.


EAX
EAX
24 bit color modes have a full range of RGB values 0-255
16 bit color modes are a word values
in 16 bit color Red has 5 bits , green has 6(sometimes 5), and blue has 5
RED shift values right 3
GREEN shift values right 2
BLUE shift values right 3
blue+green(2^5)+red(2^11)=your color value

blue has bits 0-4 (5 bits)
green has bits 5-10 (6 bits)
red has bits 11-16 (5 bits)




Edited by - GoofProg on September 15, 2001 3:55:45 PM

The nightmare travels across the cosmos with his burning mane. The trail of ash that is produced.

?Have a nice day!?

This topic is closed to new replies.

Advertisement