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 PROTECTED]
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]