Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Oval with shadow
Oval with shadow [message #138408] Wed, 16 June 2004 09:02 Go to next message
Eclipse UserFriend
Originally posted by: david_danie.hotmail.com

Hi,
Is it posiible to create Oval with shadow?.

Thanks,
David Danie.
Re: Oval with shadow [message #138487 is a reply to message #138408] Wed, 16 June 2004 17:49 Go to previous message
steven melzer is currently offline steven melzerFriend
Messages: 38
Registered: July 2009
Member
what i do is draw two ovals (or any shape), the bottom one offset and
black to create a shadow.

in a much more elaborate case i wanted my main shape to be
semi-transparent so the shadow was visible beneath. in this case, i
created two Images, each one drawn with the same shape, but the main one
with alpha set and the second one just black. then i have a figure with
both images. i draw the shadow first with a graphics.drawImage(), then
the main image with graphics.drawImage() offset from the shadow. this
makes a very cool effect where the shadow is slightly visible behind the
top image.

David Danie wrote:

> Hi,
> Is it posiible to create Oval with shadow?.

> Thanks,
> David Danie.
Previous Topic:Popup a shell in GraphicalEditor
Next Topic:creating a transparent box
Goto Forum:
  


Current Time: Fri Apr 26 19:51:15 GMT 2024

Powered by FUDForum. Page generated in 0.03205 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top