Register / Login
Win a copy of
Java Mock Exams (software)
this week in the
Programmer Certification (OCPJP)
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Java Micro Edition
How to set a Background that not stretch?
posted 10 years ago
I'm trying to set a background image in a app with some code like:
Image2D backgroundImage2D = new Image2D( Image2D.RGB, backgroundImage );
In paint I paint it like:
But the problem is that the image is stretched over the screen. I would like it to stay in center and not be stretched.
So if you guys got any ideas please let me know.
Best regards<br />Fredrik
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
Boost this thread!
How to set image as background of JTree component
Painting an image on a button
Java2D question.: How can you superimpose an image on another?
Creating a 'background'