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.