I'm just getting my feet wet with Quartz 2D and built a small app to
try out some functions. The following code doesn't behave as I
expected. Specifically the asterisked line below leaves maskedImage
as nil. Either MyImage or aGrayScaleImage will display correctly.
Any help appreciated.
According to the documentation:
"A mask. If the mask is an image, it must be in the DeviceGray color
space, must not have an alpha component"
The CGImageCreateWithPNGDataProvider function likely returns an image
in a RGB + alpha colorspace. So using CGImageCreateWithCreateMask with
that image as a mask image will fail.
Try converting the mask image to using DeviceGray.
-Corey
--
-Corey O'Connor
_______________________________________________
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