Get Image Height and Width
Hi all,
i am trying to get the height and width of an imgae,
see below
url = new URL("some url of an image");
Image img = Toolkit.getDefaultToolkit().getDefaultToolkit().cr eateImage(url);
img.getHeight(....?????);
but not able to get the real height and width.
i am trying to put null at ????..
Thank you.
Regards,
Neeraj
To ImageIO or not to ImageIO
For those who doubted that ImageIO existed...
ImageIO (Java Platform SE 6)
... and guess what?... it does have a read() method... as a matter of fact , it has 4 read() methods.
Luck,
CJSL