
Converting a 24 bit bitmap
Quote:
> Can someone tell me how can I conver a 24 bit image to
> a 256 color bitmap or to a JPG file?
To convert to an 8-bit bitmap requires more work than you may expect, mostly
because you've got to find the best palette to represent the image (24-bit
images aren't based on palette's where was <= 8-bit are). Various
colour-space quantisation methods exist and you can find information about
these if you do a search but be warned it's quite tricky. There is a VB
implementation on www.vbaccelerator.com though if you don't fancy giving it
a shot yourself.
To save as a .JPG then you'll need to grab the IJL off www.Intel.com and
you'll find a demonstration VB project in there that shows you how to
convert a bitmap to JPEG.
Hope this helps,
Mike
-- EDais --
- Microsoft Visual Basic MVP -
WWW: Http://EDais.earlsoft.co.uk/