Re: Punching a hole in an NSImage
Re: Punching a hole in an NSImage
- Subject: Re: Punching a hole in an NSImage
- From: Troy Stephens <email@hidden>
- Date: Wed, 29 Jun 2005 09:41:34 -0700
On Jun 29, 2005, at 8:27 AM, Shoaib wrote:
I'm trying to create an offscreen NSImage and then "cut" out a
portion of the image before drawing it.
What's the best way to "cut" out a part of the image, so the part
that is cut out is transparent?
See the "Cropped Image" example:
http://developer.apple.com/samplecode/Cropped_Image/
Cropped_Image.html
In particular, the "Lasso Style" selection mode shows how to crop an
image to any arbitrary Bezier path.
--
Troy Stephens
Cocoa Frameworks
Apple Computer, Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden