This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Java Image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Java Image" Watch "Java Image" New topic

Java Image

Puneet Gupta

Joined: Aug 20, 2003
Posts: 9
Need your help on this.
I have a background image(Image object) and a canvas(canvas Object).
Is it possible that the background image stretch to the canvas size. I am able to retrive the canvas size by getWidth() & getHeight().

basically i want to load the image as background image so that the image width/height get resized to the canvas width/heingt.
The canvas size can also change as per the user screen or user requirement.

Puneet Gupta
subject: Java Image
Similar Threads
How to move Background image on resize of window
how to get Image from Canvas
How does canvas, an exteded JPanel obj have methods getSize(), createImage(size.width, size.height)?
Embossing a sprite on an image background
Image resizing