| Background image on Composite [message #723481] |
Thu, 08 September 2011 12:26  |
RD Messages: 10 Registered: September 2011 |
Junior Member |
|
|
I set the background image of a composite:
composite.setBackgroundImage(image);
The problem is that the image is smaller than the composite, and the image is tiled. How can I change it so that the image is either centered or stretched within the composite? Is there a way to control the image location within the composite?
Thanks.
|
|
|
| Re: Background image on Composite [message #723519 is a reply to message #723481] |
Thu, 08 September 2011 14:00   |
Vijay Raj Messages: 608 Registered: July 2009 |
Senior Member |
|
|
Paint the image using a paint listener and change the image size by modifying the image data and getsize method of composite...
---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03512 seconds