setting the fg/bg color of a 1 bit image

S

sSpanglestein

Is there a simple way to set the foreground and background colors of a
one bit image? What I need to do is draw a bitmap on a Canvas
component where all black pixels in the loaded gif Image paint as my
custom foreground color and all white pixels paint as my custom
background color. I'm thinking maybe something like drawing a filled
rectangle using the bitmap as a mask?? I am porting code from Windows,
and this is something that is kind of built in to MFC.

- Thanks, Spanglestein
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,120
Latest member
ShelaWalli
Top