Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Image

 
Puneet Gupta
Greenhorn
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.

regards,
Puneet Gupta
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic