• 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: How do you fill an NSBezierPath with transparent color?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you fill an NSBezierPath with transparent color?


  • Subject: Re: How do you fill an NSBezierPath with transparent color?
  • From: "John C. Randolph" <email@hidden>
  • Date: Tue, 27 Sep 2005 20:31:53 -0700


On Sep 27, 2005, at 8:15 PM, Brian O'Brien wrote:

I've seen post were you can clear a NSBitmapImageRep using NSFillRect having set NSColor to ClearColor.
However I have an NSBezierPath I want to fill with a transparent clear.
I don't seem to be able to do this. I either get solid black or solid white with no transparency regardless of the alpha value

Set the color you want, then send

[[NSGraphicsContext currentContext] setCompositingOperation: NSCompositeSourceOver];

then send a -fill message to the path object.

-jcr



John C. Randolph <email@hidden> (408) 914-0013
Roaming Cocoa Engineer,
Available for your projects at great Expense and Inconvenience.



_______________________________________________
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: 
 >How do you fill an NSBezierPath with transparent color? (From: "Brian O'Brien" <email@hidden>)

  • Prev by Date: How do you fill an NSBezierPath with transparent color?
  • Next by Date: NSArrayController in 'entity mode'
  • Previous by thread: How do you fill an NSBezierPath with transparent color?
  • Next by thread: NSArrayController in 'entity mode'
  • Index(es):
    • Date
    • Thread