|
-
April 10th, 2002, 11:45 PM
#1
IS IT POSSIBLE TO COMPARE THE COLOR OF A MONO BMP?????
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
-
April 11th, 2002, 01:39 AM
#2
Re: IS IT POSSIBLE TO COMPARE THE COLOR OF A MONO BMP?????
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|