jcrshankar
jcrshankar

Reputation: 1196

How to reduce the Image size?

loc =d_path+"\\a"+m+"a"+".jpg"; 
Image image = Image.getInstance (loc);

I want to reduce image width. Could anyone help me out for the same?

Upvotes: 1

Views: 520

Answers (1)

StanislavL
StanislavL

Reputation: 57381

Image has method

public Image getScaledInstance(int width, int height, int hints)

Upvotes: 3

Related Questions