Manipulating images [message #445315] |
Mon, 01 November 2004 19:03 |
Francois 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
context
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?
Thanks
Francois
|
|
|
Powered by
FUDForum. Page generated in 0.02114 seconds