HI,
I HAVE A MONO BITMAP COLORED WITH BLACK BRUSH.IS IT POSSIBLE TO COMPARE THE COLOR OF THAT BITMAP?
IF POSSIBLE PLEASE HELP ME WITH THE CODE.
ADVANCED THAX
-SRUJAN
Printable View
HI,
I HAVE A MONO BITMAP COLORED WITH BLACK BRUSH.IS IT POSSIBLE TO COMPARE THE COLOR OF THAT BITMAP?
IF POSSIBLE PLEASE HELP ME WITH THE CODE.
ADVANCED THAX
-SRUJAN
Hi srujan
this is one way u can do for comparison:
1.Create a memory DC from the opened bitmap.
2.use CDC:GetPixel() function which returns u a COLORREF.
3.then may be u can use GetBValue(),GetGValue(),
GetRValue() macros to compare the pixel values with ur desired color.
Hope this helps
SKP
Be sure to rate answers if it helped, to encourage them.