File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
Swing / AWT / SWT
How to resize image
Joined: Dec 29, 2000
Mar 29, 2001 12:33:00
I want to resize
, say,the original size of the image is 800*600, i want to reduce it to 80% of original size.
Thanks for your kind help in advance.
Joined: Feb 22, 2001
Mar 29, 2001 18:44:00
Here is a link to the docs for the Image method getScaledInstance:
It takes a new height and width for parameters, not percentage, but you should be able to calculate those yourself.
[This message has been edited by Angela Ann (edited March 29, 2001).]
I agree. Here's the link:
subject: How to resize image
how to get Image from Canvas
help needed to reshape an image
Retrive Exif data from jpeg Image
several animation frames in one file, transparency issues
Image in JLabel
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015