• 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: Erasing drawn content
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Erasing drawn content


  • Subject: Re: Erasing drawn content
  • From: Paul Kim <email@hidden>
  • Date: Wed, 9 Jun 2010 15:15:39 -0400

I might as well take a stab at this:

- Draw into an NSImage, filling the shapes as fully opaque.
- Composite/draw the image into your view with whatever alpha you need via the "fraction" argument.
- Draw the outlines, which I assume you want to be fully opaque, directly into the view.

Haven't tried it myself but I think it should work.

paul

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Erasing drawn content
      • From: Alastair Houghton <email@hidden>
References: 
 >Re: Erasing drawn content (From: "Paul Sanders" <email@hidden>)
 >Re: Erasing drawn content (From: Matej Bukovinski <email@hidden>)
 >Re: Erasing drawn content (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: Erasing drawn content
  • Next by Date: NSDictionaryController code example
  • Previous by thread: Re: Erasing drawn content
  • Next by thread: Re: Erasing drawn content
  • Index(es):
    • Date
    • Thread