-
can somebody help me?
hi everyone...i'm a new user here and i am working on a fingerprint verification using C++ Builder.
i have problem in setting pixel value for my fingerprint image according to color. For example i want to set the black pixel as binary 1 and white as 0 since the image is black and white.
Can anybody help me?Thanks..
-
What?
Do you want to create your own bitmap format? I don't think that full-black-or-full-white is standard. There is a standard with 256 shades of gray... You could just use the standard (256 shades of gray) format and force all of your values to either 0 or 255, and skip the binary approach.
If all you want to do is display high-contrast black or white pixel: Turning the 3 colors (red, blue, and green) to their maximum will give you a white pixel, turning them all off will make a black pixel.
Here's a link to a site with the standard Windows bitmap formats.