• 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: Transparency? SOLVED
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Transparency? SOLVED


  • Subject: Re: Transparency? SOLVED
  • From: Stéphane Sudre <email@hidden>
  • Date: Wed, 21 Apr 2004 19:08:47 +0200

NSRectFillUsingOperation(NSRect aRect, NSCompositingOperation op);

?


On 21 avr. 2004, at 18:10, Huyler, Christopher M wrote:

Thanks! I would have run into the isOpaque problem sooner or later and
the it hadn't even crossed my mind...

Good news, I found a solution...
NSRectFill() apparently ignores the alpha value. A work around is to
use a NSBeizerPath like so:

NSBezierPath *bp = [NSBeizerPath bezierPathWithRect:rect];
[[NSColor colorWithCalibratedWhite:1.0 alpha:0.5] set];
[bp fill];

Thanks everyone for your help.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >RE: Transparency? SOLVED (From: "Huyler, Christopher M" <email@hidden>)

  • Prev by Date: Archiving NSTableViews
  • Next by Date: Re: Enabling NSMenuItem in Code?
  • Previous by thread: RE: Transparency? SOLVED
  • Next by thread: Re: Transparency? SOLVED
  • Index(es):
    • Date
    • Thread