Skip to main content



      Home
Home » Eclipse Projects » GEF » SWT draw2d alpha blending(Draw2d Graphics setAlpha performs poor)
SWT draw2d alpha blending [message #676180] Fri, 03 June 2011 02:24
Eclipse UserFriend
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...

Thanks,
atx
  • Attachment: Snippet.java
    (Size: 9.38KB, Downloaded 591 times)
Previous Topic:ZEST Large Graph
Next Topic:Lost connections on deletion
Goto Forum:
  


Current Time: Sun Apr 20 14:38:15 EDT 2025

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

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

Back to the top