• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Image

Puneet Gupta
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!