Drawing with a mask
Drawing with a mask
- Subject: Drawing with a mask
- From: David Remahl <email@hidden>
- Date: Sat, 13 Apr 2002 14:09:42 +0200
Hi, all!
I want to draw an image based on a mask. What I mean is, I want to draw only
the parts of an image where its alpha and the mask alpha intersect. I have
tried all the different compositioning modes, and the one that is closest is
NSCompositeSourceIn, but that restricts the drawing of the source to the
alpha of the target but leaves the target visible. That is a problem if the
source image is smaller than the destination, as I don't want the
destination to show up.
What approach do you suggest that I take?
/ David
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.