Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT & Graphics
SWT & Graphics [message #436990] Thu, 27 May 2004 15:45 Go to next message
Eclipse UserFriend
Originally posted by: mhuenken.cerner.com

Hi,

I guess this is not the main domain of SWT, but has anyone made any
experience with the development of more complex graphical applications
using SWT?. We're trying to do interactive imaging (Window-Leveling,
Zooming, Paning etc.) by using the SWT Graphics API and we experienced
some performance and flickering problems.

So does GC.drawImage(...) take care of issues like synchronizing when
drawing an image into a window to prevent flickering?

By the way, the drawable in question is a Canvas and when using the
NO_BACKGROUND style there is less flickering but then we get artificats
when panning or zooming an image?

Any hints appreciated.

Thanks,
Mark
Re: SWT & Graphics [message #436997 is a reply to message #436990] Thu, 27 May 2004 17:48 Go to previous messageGo to next message
Jeff Myers is currently offline Jeff MyersFriend
Messages: 396
Registered: July 2009
Senior Member
Have you looked at the GEF project's Draw2D plugin? Some of these
features may already be available to you.

- Jeff

markh wrote:
> Hi,
>
> I guess this is not the main domain of SWT, but has anyone made any
> experience with the development of more complex graphical applications
> using SWT?. We're trying to do interactive imaging (Window-Leveling,
> Zooming, Paning etc.) by using the SWT Graphics API and we experienced
> some performance and flickering problems.
>
> So does GC.drawImage(...) take care of issues like synchronizing when
> drawing an image into a window to prevent flickering?
>
> By the way, the drawable in question is a Canvas and when using the
> NO_BACKGROUND style there is less flickering but then we get artificats
> when panning or zooming an image?
>
> Any hints appreciated.
>
> Thanks,
> Mark
>
Re: SWT & Graphics [message #437080 is a reply to message #436990] Fri, 28 May 2004 14:11 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
SWT.NO_BACKGROUND means that you must paint every pixel in the control.
That's where the artifacts are coming from.

"markh" <mhuenken@cerner.com> wrote in message
news:c952eu$v9s$1@eclipse.org...
> Hi,
>
> I guess this is not the main domain of SWT, but has anyone made any
> experience with the development of more complex graphical applications
> using SWT?. We're trying to do interactive imaging (Window-Leveling,
> Zooming, Paning etc.) by using the SWT Graphics API and we experienced
> some performance and flickering problems.
>
> So does GC.drawImage(...) take care of issues like synchronizing when
> drawing an image into a window to prevent flickering?
>
> By the way, the drawable in question is a Canvas and when using the
> NO_BACKGROUND style there is less flickering but then we get artificats
> when panning or zooming an image?
>
> Any hints appreciated.
>
> Thanks,
> Mark
>
Previous Topic:Table refresh
Next Topic:force SelectionChangedEvent on List
Goto Forum:
  


Current Time: Thu Apr 25 23:27:00 GMT 2024

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

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

Back to the top