Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can a get color of each pixel in bmp file
Message
 
To
14/04/2001 13:59:26
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00495515
Message ID:
00495579
Views:
12
>I want to punch holes on a card depending on the color of the pixel(s). So that will require to parse all the file in left to right & top to bottom pixel by pixel. It would be great if there is some utility to do so.
>Where can I find the file struct. of various bmp files.
>
Rajesh,

The Platform SDK has the structures involved, but the nature of the data bits depends on the number of colors. For example, a 16 color bitmap contains the offset into a structure called an RGBQuad array in four bits in each byte of the file. A 256 color bitmap contains the offset in each byte. A 24 bit color bitmap is entirely different in that theres no array, and the colors are as specified in each DWORD. That's why I asked the question.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform