What's the minX on the subimage.getRaster()? 

> -----Original Message-----
> From: Discussion list for Java 2D API 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> [EMAIL PROTECTED]
> Sent: Tuesday, November 20, 2007 10:47 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JAVA2D] Saving & restoring a region of a VolatileImage
> 
> 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".
> 

===========================================================================
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".

Reply via email to