PNG Reading

Is there a class that will let me read a PNG image and have access to the coordinates of each individual image object that is contained within the PNG file. Say I have a PNG file with three different image objects laid out at (0, 10); (5, 20); and (10, 30) coordinates. Is there a class that will let me read in a PNG file and get a String return or something of the image object name and coordinates? Any help would be great!

Thanks!

[447 byte] By [Gnavicksa] at [2007-10-2 16:29:50]
# 1

load the [url=http://java.sun.com/j2se/1.4.2/docs/api/java/awt/image/BufferedImage.html]BufferedImage[/url] with [url=http://java.sun.com/j2se/1.4.2/docs/api/javax/imageio/ImageIO.html]ImageIO[/url].

then use BufferedImage's [url=http://java.sun.com/j2se/1.4.2/docs/api/java/awt/image/BufferedImage.html#getSubimage(int,%20int,%20int,%20int)]getSubimage[/url] method.

Woogleya at 2007-7-13 17:31:51 > top of Java-index,Other Topics,Java Game Development...
# 2
Thanks! That helps out a bunch but I抦 still curious if anyone knows how to acquire a list of all the subimages contained within a PNG along with their coordinates and dimensions.
Gnavicksa at 2007-7-13 17:31:51 > top of Java-index,Other Topics,Java Game Development...
# 3

When I said I want to "acquire a list of all the subimages contained within a PNG along with their coordinates and dimensions," I want to acquire these subimages without knowing the size of or how many subimages are contained within a given PNG file. I should have clarified this in my first post.

Gnavicksa at 2007-7-13 17:31:51 > top of Java-index,Other Topics,Java Game Development...