• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Punching a hole in an NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Punching a hole in an NSImage


  • Subject: Re: Punching a hole in an NSImage
  • From: Nick Zitzmann <email@hidden>
  • Date: Thu, 2 Mar 2006 07:50:27 -0700


On Mar 2, 2006, at 7:43 AM, Ben Lachman 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?

Just save the graphics context state, set [NSColor clearColor], draw a filled in rectangle, and restore the state. That ought to work.


Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________ 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
References: 
 >Punching a hole in an NSImage (From: Ben Lachman <email@hidden>)

  • Prev by Date: Punching a hole in an NSImage
  • Next by Date: Re: Punching a hole in an NSImage
  • Previous by thread: Punching a hole in an NSImage
  • Next by thread: Re: Punching a hole in an NSImage
  • Index(es):
    • Date
    • Thread