dcsimg
Scale JPEG pictures
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Nicolas_Steiner
Posted On:   Saturday, March 4, 2006 06:00 AM

Hello, I would like to scale JPEG pictures but I don't find the way to do it. It seems that I can use AffineTransform but I don't understand how. What I want to do is : - read a JPEG from a file - check width and height - scale the jpeg to a pre-defined size (for instance 640x480 if the picture is larger) - write the scaled picture in a file Do I need "external" libraries ? By the way, what is the best java object to display a jpeg ? Thank you ! Nicolas    More>>

Hello,


I would like to scale JPEG pictures but I don't find the way to do it. It seems that I can use AffineTransform but I don't understand how.


What I want to do is :

- read a JPEG from a file

- check width and height

- scale the jpeg to a pre-defined size (for instance 640x480 if the picture is larger)

- write the scaled picture in a file



Do I need "external" libraries ?

By the way, what is the best java object to display a jpeg ?


Thank you !

Nicolas

   <<Less
About | Sitemap | Contact