Forums Register Login

Java Image

+Pie Number of slices to send: Send
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.

regards,
Puneet Gupta
You ought to ventilate your mind and let the cobwebs out of it. Use this cup to catch the tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1107 times.
Similar Threads
how to get Image from Canvas
How does canvas, an exteded JPanel obj have methods getSize(), createImage(size.width, size.height)?
How to move Background image on resize of window
Image resizing
Embossing a sprite on an image background
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 03:52:44.