• 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: mask nsimage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mask nsimage


  • Subject: Re: mask nsimage
  • From: David Duncan <email@hidden>
  • Date: Fri, 25 Apr 2008 09:44:24 -0700

On Apr 25, 2008, at 9:37 AM, Dominik Pich wrote:

I have an NSImage I need to draw (correctly scaled) in a pecifc drawRect. (got that of course)
Now whenever I draw it I want to mask it so it appears beveled, rounded and (to make it harder) kinda '3d-isch'
--> see an IPhoto event for what I want to doo aproximaty.

From the looks of it, it seems you would just clip to a rounded rect and add a shadow.


Now what technqiue should I use.. I mean CG kinda looks like it does what I need but I wanted to know if there wasn't an easier way :) (the CG APIs look 'weird' and the docs dont provide sample or pseudo code for _this_)


The CG API is almost 1:1 with NSBezierPath and other Cocoa Graphics tools, although both API do offer abilities that the other doesn't directly offer. As for "weird" I can't really say anything to that :).
--
David Duncan
Apple DTS Animation and Printing
email@hidden




_______________________________________________

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: 
 >mask nsimage (From: Dominik Pich <email@hidden>)

  • Prev by Date: -init and awakeFromNib called twice.
  • Next by Date: Sheet window as firstResponder
  • Previous by thread: mask nsimage
  • Next by thread: -init and awakeFromNib called twice.
  • Index(es):
    • Date
    • Thread