24 bit color bitmap creation 
Author Message
 24 bit color bitmap creation

I am trying to read a rasterized graphic format from disk, convert to a
bitmap and display it in a picturebox. Am ia correct in assuming that a
24 bit bimap requires 3 bytes of data per pixel? What's the easiest way
to declare this, as an array of 3 bytes?

The thing that I don't understand is I originally loaded the file and
displayed it in the picturebox as 8 bit and it looked fine (looked like
24 bit color). I set up the color table as RGBQUAD and altered the
colors from 0 - 255 in greyscale.  The biBitCount field was set to 8.
Why did this happen? The only reason why I noticed a problem was when I
tried Jim Deutch's code for fading a bitmap on a picturebox. When I
tried basically the same bitmap header (8 bit color, etc), then the
result was true 8 bit color (much less resolution).

Sorry this sounds cryptic. Anyone have an idea?



Sun, 27 Jan 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Howto change 24 bit bitmap into 8 bit bitmap in vb

2. Help on manipulating 24-bit colors from bitmap

3. 24-bit to 1-bit bitmap

4. Custom 24-bit colors in 256-color mode

5. Converting a 24 bit bitmap

6. pset and 24 bit color

7. Equivalent of palette switching with 24-bit color?

8. How to print 24-bit color using printer.paintpicture

9. Create DC to hold 24-bit color image

10. 24-bit to 256 colors

11. IMAGELIST and 24 by 24 bit icons...

12. 24-bit bmp to 1-bit conversion

 

 
Powered by phpBB® Forum Software