Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Violet Nelson   on May 10 In Java Category.

  
Question Answered By: Camille Garrett   on May 10

graphics.drawImage( image,getWidth( ),getHeight( ), graphics.LEFT| Graphics. TOP);
will draw the image  at the bottom right coner of the screen ,thats why its going off the screen.
try this : graphics.drawImage( image,20,20, graphics.LEFT| Graphics. TOP); or some other coordinates inside the boundiers of the screen and works for you.

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 


Tagged: