All I am trying to do is find the width and height of an Image. I am trying to use the getWidth() and getHeight() methods to determine the w/h of the image- [these are unknown otherwise I'd use a BufferedImage]. I don't really know enough about the ImageObserver interface to implement it correctly [have tried using 'null' and 'this' with no success].
Image image = Toolkit.getDefaultToolkit().getImage(imageFile);
int width = image.getWidth(ImageObserver);
Any advice/help would be much appreciated. Thanks.
Image image = Toolkit.getDefaultToolkit().getImage(imageFile);
int width = image.getWidth(ImageObserver);
Any advice/help would be much appreciated. Thanks.