Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » setAlpha and drawing into Images
setAlpha and drawing into Images [message #453294] Mon, 04 April 2005 19:38 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:Any way to use Sun JVM for applet in SWT Browser (Windows)?
Next Topic:Howto place a menu bar in coolbar using jface
Goto Forum:
  


Current Time: Fri Mar 05 19:28:18 GMT 2021

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

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

Back to the top