Re: Punching a hole in an NSImage
Re: Punching a hole in an NSImage
- Subject: Re: Punching a hole in an NSImage
- From: "Guy English" <email@hidden>
- Date: Thu, 2 Mar 2006 09:51:40 -0500
This will make a transparent hole in your image:
[image lockFocus];
[[NSColor clearColor] set];
NSRectFill( rectOfHoleThroughImage );
[image unlockFocus];
Hope that helps,
Guy
On 3/2/06, Ben Lachman <email@hidden> wrote:
> What's the easiest way to cut a rect out of an NSImage so that the
> view that is behind the image can show though? I've looked at the
> Cropped Image sample code but can't see how that applies to what I
> want to do.
>
> Thanks,
>
> ->Ben
>
>
> ––––––––––––––––––––––––––––––––––––––––
> Ben Lachman • email@hidden
> email@hidden
>
>
> _______________________________________________
> 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
>
_______________________________________________
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