Draw2d Figures with transparency [message #162833] |
Tue, 28 December 2004 13:31 |
Eclipse User |
|
|
|
Originally posted by: kardo.mail.pt
Hi,
How can I make a
Draw2d
RectanguleFigure
(extends Figure)
with transparency?
Thks in advanced.
Ricardo Marques
|
|
|
|
|
Re: Draw2d Figures with transparency [message #162956 is a reply to message #162887] |
Wed, 29 December 2004 06:38 |
Eclipse User |
|
|
|
Originally posted by: eostroukhov.hotmail.com
There's no support for alpha values (at least I haven't seen any), but you
could try setXORFill(true). In the case you need trasparency for the
feedback painting, take a look at FigureUtilities::makeGhostShape.
"netb" <kardo@mail.pt> wrote in message news:cqrvam$f71$1@www.eclipse.org...
> But I don't want transparent, I want with transparency. For example I want
> 50%
> opaque or transparent. An Image has an alpha value.
|
|
|
Re: Draw2d Figures with transparency [message #163005 is a reply to message #162887] |
Wed, 29 December 2004 16:25 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
The only transparency support in SWT is via Image. You'll have to create a
transparent image, and paint the Image. It's a pretty expensive workaround.
You can stretch a small image. See ScrollableThumbnail for an example in
GEF.
boa sorte.
"netb" <kardo@mail.pt> wrote in message news:cqrvam$f71$1@www.eclipse.org...
> But I don't want transparent, I want with transparency. For example I want
50%
> opaque or transparent. An Image has an alpha value.
|
|
|
Re: Draw2d Figures with transparency [message #163050 is a reply to message #163005] |
Thu, 30 December 2004 12:37 |
Eclipse User |
|
|
|
Originally posted by: kardo.mail.pt
Hi have tried to use makeGhostShape() and it worked. It's not exactly what
I want but for now it will do.
But I will try this workarround, it could be better.
Muito Obrigado!
Randy Hudson wrote:
> The only transparency support in SWT is via Image. You'll have to create a
> transparent image, and paint the Image. It's a pretty expensive workaround.
> You can stretch a small image. See ScrollableThumbnail for an example in
> GEF.
> boa sorte.
> "netb" <kardo@mail.pt> wrote in message news:cqrvam$f71$1@www.eclipse.org...
>> But I don't want transparent, I want with transparency. For example I want
> 50%
>> opaque or transparent. An Image has an alpha value.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04665 seconds