• 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
[RESOLVED] Re: Pattern colors and alpha
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RESOLVED] Re: Pattern colors and alpha


  • Subject: [RESOLVED] Re: Pattern colors and alpha
  • From: Luke Evans <email@hidden>
  • Date: Sun, 13 Jan 2008 16:38:58 -0800


Anyway, there's every chance I'm just being dumb - ...


Indeed there is.

The moral of the story here is never to assume.
I _assumed_ (and partly this was a false sense of familiarity) that NSRectFill would use whatever compositing operation was set in the graphics context.


Apparently not.

Once RTFM occurred, it was plain that this function forces NSCompositeCopy, and I clearly wanted NSCompositeSourceOver

Ergo, no image is required - using the more general NSRectFillUsingOperation I can now bang my hatch pattern with its alpha right over the top of any previously drawn graphics - with expected results. Hooray, this n00b gets to move on to the next conundrum ;-)

-- Lwe

_______________________________________________

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


References: 
 >Pattern colors and alpha (From: Luke Evans <email@hidden>)

  • Prev by Date: CATransition on NSSplitView replaceSubview
  • Next by Date: Re: Finder/iTunes Sidebar View?
  • Previous by thread: Pattern colors and alpha
  • Next by thread: CATransition on NSSplitView replaceSubview
  • Index(es):
    • Date
    • Thread