Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Image size  RSS feed

 
Gan nit
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to determine the image size in pixels. I tried to load the image using getDefaultToolkit().getImage and determine the size using getWidth() of the Image class. However, the method always returns -1.

Any ideas on how I can determine the image size. If you have any sample code please post.

Thanks
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!