Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSShadow and clipping



Hi,

I have a hard time with NSShadow. I have two problems related with clipping.

1) If I need to constraint drawing an image or a shading (gradient) inside a
non rectangular path, as far as I know, my sole solution is to use clipping
from the the path. Unfortunately, this same clipping prevent the drawing of
the shadow around the my drawing since the whole clipping is filled. I would
have thought that NSShadow will use the clipping at the moment of the -set.

2) It seems that NSShadow draw the shadow only for the thing effectively
drawn, which cause another problem. If the shape that has a shadow is
complete scrolled out except its shadow, it becomes impossible to draw the
shadow.

I've tried to draw all my element in a temporary NSImage. Unfortunately,
this seems a bad idea since NSImage keeps a bitmap: when zooming or printing
the result is still at 72 dpi.

Is there any other solutions?

Thanks,

Eric

___________________________________________________________________

Eric Forget Cafederic
email@hidden <http://www.cafederic.com/>

Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684>
_______________________________________________
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.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.