If you just want to know the size, you could create a Rectangle
containing the bounds of the original image and call
AffineTransform.createTransformedShape() on the Rectangle. Then
call getBounds() or getBounds2d() on the resulting Shape.

> -----Original Message-----
> From: Discussion list for Java 2D API
> [mailto:[EMAIL PROTECTED] On Behalf Of
> [EMAIL PROTECTED]
> Sent: Friday, September 15, 2006 3:41 AM
> To: [EMAIL PROTECTED]
> Subject: [JAVA2D] Calculate new image width and image height
>
>
> I'm working on an application that reads a image from file,
> applies AffineTransform including scale, shear and rotate
> parameters and then saves it to another image file. But the
> new image is lost some when I keep it the same size as the
> original image.
>
> Question:
> Is there any ways to calculate new image size which is depend
> on scale, shear and rotate parameters?
>
> Thanks for any information you provide, whether links,
> pointers to books, or source code. It will be very much appreciated.
>
> Hoa
> [Message sent by forum member 'lmhoa' (lmhoa)]
>
> http://forums.java.net/jive/thread.jspa?messageID=153443
>
> ==============================================================
> =============
> 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