Hello,
All the documentation I've read for image masks seems to say that I
can draw with an image mask and get the fill color drawn in the
unmasked areas. Here is what I'm reading:
http://developer.apple.com/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_images/chapter_12_section_5.html#//apple_ref/doc/uid/TP30001066-CH212-CJBDIJEE
I've looked through the mailing list archives and what I read there
seems to say the same thing. So I take this to mean I can do something
roughly like so:
mask = CGImageMaskCreate(50, 50, 8, 8, maxSize, dataref, NULL, 1);
CGContextSetRGBFillColor(baseCxt, 1.0, 1.0, 0.0, 1.0);
CGContextDrawImage (baseCxt, destRect, mask);
and I figure I should get a yellow version of my mask painted. But
when I try this all I ever get is black. Am I missing something? I get
the feeling at this point that I'm doing something stupid or not doing
something important.
If it helps understand better what I'm trying to do, I'm doing this
for a small drawing tool and I don't want to have to create a new
bitmap every time I want to change the color of the brush.
I'd be thankful for any help.
Thanks,
-S
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden
This email sent to email@hidden