Is there a fast NSShadow alternative?
Is there a fast NSShadow alternative?
- Subject: Is there a fast NSShadow alternative?
- From: "Alan Smith" <email@hidden>
- Date: Tue, 10 Jul 2007 12:46:26 -0400
Hello everyone,
I am trying to create an "inner glow" or "inner shadow" for a bezier
path. For a simple example of the effect I am trying to achieve open
iTunes and press one of the sticky buttons at the bottom of the
window. The inside of the image will glow blue, it's very pretty.
Using NSShadow to make such an inner glow is simple enough but in
order to get it the bezier path has to be stroked, I don't want the
path to show up, just the glow.
One way I could get the effect I'm looking for would be to create a
CIImage with the stroked path in it and then blur it. This is too slow
and not simple enough. It would also try to blur the whole image when
only part of the image would have something in it.
I could also make an inner glow by stroking a path in between calls to
CGContextBeginTransparencyLayer and CGContextEndTransparencyLayer and
blurring the context. The only problem is I don't know how to blur the
context except by going through CoreImage which I don't want to do.
Perhaps I am missing a CoreGraphics function? All help is greatly appreciated.
Peace, Alan
--
// Quotes from Alan Smith -------------------------
"You don't forget, you just don't remember."
"Maturity resides in the mind."
"Silence is the Universe's greatest gift."
"When the World realizes that personal beliefs are not something to
argue or fight over, it shall evolve."
_______________________________________________
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