Apparently, the library documentation has not been updated,
because when I
check the type of the returned objects in the debugger, I find
that I am
receiving "apple.awt.OSXImage" instances, not the BufferedImage
instances I
expected.
That is truly remarkable! I was going to suggest that
apple.awt.OSXImage
might subclass BufferedImage, but when I check the 1.4.2 jars, neither
apple.awt.OSXImage nor its superclass sun.awt.image.Image subclasses
BufferedImage. Yet somehow, this isn't considered a type-safety
error.
Michael,
Are you really using the createCompatibleImage() API from the
GraphicsConfiguration object?
You mentioned java.awt.Toolkit.createImage() which is only documented
as returning an Image, not a BufferedImage. Same with
Component.createImage().
Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden