Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Manipulating images
Manipulating images [message #445315] Mon, 01 November 2004 19:03
Francois is currently offline FrancoisFriend
Messages: 7
Registered: July 2009
Junior Member
I created my own widget extending Composite class and including a Label
widget with an image inside, but there is 2 problem remaining (note my
target OS is QNX):

1- Image switch is always flicking
When I click on my custom buttons, I load an image "ON" on mouse down and
an image "OFF" on the release. Each time, the image zone is flicking from
white to the new image. I read on the problem and I found some possible
solutions... and I want to have your advice on which sould be the better.
- Extending gc class to override some functions to use the offscreen
of the OS before display the image (I wish is not the best solution
- Load internally all my pictures in a global image list via JNI calls
- Use [something]Buffered() methods
- Use the swt method (that I don't know yet!) that allows to display an

image without flicking

2- Because the image is inside a Label, I have a grey border on the left
and on the top.
It doesn't seems to be possible to setBounds of an image inside a Label
and force negative value for the up and left. So how I can display my
image correctly to fill the the full size Label?

Previous Topic:Creating own widget from SWT Label
Next Topic:Drawing
Goto Forum:

Current Time: Sun Oct 25 17:56:21 GMT 2020

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

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

Back to the top