Decrease color depth to RGB8 (256 color 8 bit)

09-21-2006, 07:34 AM

I'm trying to load a bitmap picture, read the pixel values and then store them in a file with its equivalent 8 bit value.

I'm trying to use this:

Dim bm As Bitmap = New Bitmap(YHeight, XWith, _
but doesn't seem to work. Any way of doing this in a easy way?

09-21-2006, 08:47 AM
All you did there is create a new 8 bit black bitmap. Color quantization (with good quality) is usually far from easy. I have an example posted in the Code Library:

09-21-2006, 10:18 AM
That's exactly what I need. Basically the application I need to do is to read the byte pixel value in Hex and write it (or output it to a textbox) so I can use it somewhere else (i.e. an embedded system)


09-22-2006, 07:05 PM
Check out this thread:

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum