setAlpha and drawing into Images [message #453294] |
Mon, 04 April 2005 19:38 |
Eclipse User |
|
|
|
Originally posted by: groovynfunky.gmx.net
Hi!
I am trying to draw something into an Image with a prior call to
gc.setAlpha(). It doesn't matter to what value I set the parameter, the
image stays empty. The same method painting with a "direct" gc has no
problems with the alpha blending.
Has anyone an idea? Is this not supported (yet)? I am using WindowsXP
with SWT 3.128 (i.e. M6).
Thanks,
Michael
|
|
|
Re: setAlpha and drawing into Images [message #453522 is a reply to message #453294] |
Thu, 07 April 2005 04:45 |
Eclipse User |
|
|
|
Originally posted by: aaa.domain.invalid
Hello Michael,
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet10.java?rev=HEAD
uses the setalpha and it works there. Although I have run into a similar
thing as you have wher the setalpha does not work but by setting the
imagedatas transparentPixel = 1 I have managed to set the transparency.
Hopefully we are using the api incorrectly and someone here will help us
fix it.
Regads chhil
Michael Kerbel wrote:
> Hi!
>
> I am trying to draw something into an Image with a prior call to
> gc.setAlpha(). It doesn't matter to what value I set the parameter, the
> image stays empty. The same method painting with a "direct" gc has no
> problems with the alpha blending.
>
> Has anyone an idea? Is this not supported (yet)? I am using WindowsXP
> with SWT 3.128 (i.e. M6).
>
> Thanks,
> Michael
>
|
|
|
Powered by
FUDForum. Page generated in 0.02794 seconds