Resize a image?
I want to resize a JPG file i.e. i want to change the dimensions of the JPG file.Sothat it can be dislpayed in a small area.I want to display image in the frame.For that i used Icons with Lables.Do any body hav any idia?
[276 byte] By [
dadabaea] at [2007-10-3 4:32:29]

Two ways of doing it:1. Draw it on a Graphics context (in a paintComponent() method or to an off-screen image) using an AffineTransform2. Create a scaled instance using Image.createScaledInstance()1 is faster, 2 gives better quality (if you use the smooth algorithm).