Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java Micro Edition
How to set a Background that not stretch?
Joined: May 03, 2005
Aug 25, 2006 13:14:00
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
It is sorta covered in the
JavaRanch Style Guide
subject: How to set a Background that not stretch?
Java2D question.: How can you superimpose an image on another?
Creating a 'background'
How to set image as background of JTree component
Painting an image on a button
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013