Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » SWT draw2d alpha blending(Draw2d Graphics setAlpha performs poor)
SWT draw2d alpha blending [message #676180] Fri, 03 June 2011 06:24
atx Missing name is currently offline atx Missing nameFriend
Messages: 2
Registered: June 2011
Junior Member
Hello folks,

I'm looking for some method to draw half transparent figures within the draw2d framework.
Currently I'm using `setAlpha()` of `org.eclipse.draw2d.Graphics`. The problem is that it slows down the whole UI, if I draw more than one half transparent figure.

There was another question regarding the perfomance of it. It targets SWT on Linux, I target both Linux and Windows. The windows (Win7) system has a 3D capable graphic card and a i7 q720. The Linux machine is even better equipped and has also 3D, so I think it's not a performance issue of the platform.

My question is: Is there a performant way to achieve alpha blending in draw2d?

I've tried to use OpenGL respectivly LWJGL. Since draw2d and OpenGL can't be mixed up and I must rely on draw2d, I thought I could do something like this: draw2d -> OpenGL -> draw2d
In the Snippet attached, `canvas` is the Canvas where the OpenGL drawing happens and `c1` is the Canvas where I want to get the drawn OpenGL picture. But my to copy the OpenGL drawings doesn't work it gets me just the underlying Canvas (`canvas`) background. Besides this I'm not sure if this would improve the "perormance" anyway...

  • Attachment:
    (Size: 9.38KB, Downloaded 511 times)
Previous Topic:File chooser in the property sheet
Next Topic:Lost connections on deletion
Goto Forum:

Current Time: Thu Oct 28 00:41:21 GMT 2021

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

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

Back to the top