|Re: [draw2d] Drop Shadow [message #238384 is a reply to message #238058]
||Sat, 08 September 2007 01:35
Originally posted by: none.ibm.com|
There's always a trade-off between speed and cost. In this case, they are
caching the entire shadow in an Image. It's fine to do this for a few
figures, but it doesn't scale very well. It should be straightforward to
convert the image construction in this example to an SWT image. With clever
stretching you can do rectangular drop shadows using very small cached
images. You could also draw gradients with varying alpha values or a series
of overlapping, transparent paths.
In GEF 3.3, you can set borders which also paint a background onto any
existing figure (e.g. Label). So, you could implement this shadow effect in
a border rather than as its own "wrapper" figure.
"Michael Seele" <email@example.com> wrote in message
> i found an articel about drop shadow (for swing) in the web:
> http://www.curious-creature.org/2005/07/07/fast-or-good-drop -shadows/
> is it possible to convert the DropShadowPanel (from the example) into
> draw2d to use it for figures? has somebody some experience with that? or
> is there a similar draw2d example?
Powered by FUDForum
. Page generated in 0.02050 seconds