I've decided not to use a VolatileImage but a BufferedImage instead. However,
the following code (where image is a BufferedImage):
[code]
BufferedImage subimage = image.getSubimage(x, y, width, height);
WritableRaster raster = subimage.getRaster().createCompatibleWritableRaster();
System.out.println("x=" + raster.getMinX() + ", y=" + raster.getMinY());
[/code]
produces outputs of 0 for all values of x and y which is not what I want. I
want getMinX() to have the value of x I pass to the getSubImage() method.
Why am I getting these unwanted results?
--
And loving it,
-Q
_________________________________________________
[EMAIL PROTECTED]
(Replace the "SixFour" with numbers to email me)
[Message sent by forum member 'qu0ll' (qu0ll)]
http://forums.java.net/jive/thread.jspa?messageID=246337
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".