resize image

helloI have jpg file and I want to resize this image but with the same qualitywho is to do ?regards
[127 byte] By [the_Orienta] at [2007-11-26 20:51:33]
# 1
> I have jpg file and I want to resize this imageYou where given the answer to this question way back in November when you asked it the last time.
camickra at 2007-7-10 2:16:40 > top of Java-index,Java Essentials,Java Programming...
# 2
plese can you send me the url for the threadthanks
the_Orienta at 2007-7-10 2:16:40 > top of Java-index,Java Essentials,Java Programming...
# 3
Learn how to use the forum and keep track of your postings.Learn how to search the forum for answers.
camickra at 2007-7-10 2:16:40 > top of Java-index,Java Essentials,Java Programming...
# 4

ok

resize the image is done

but wenn i display it in jsp

-- my.jsp

[code]

<%

String _img = "home.jpg";

Image newIMG=

Toolkit.getDefaultToolkit().getImage(_img).getScaledInstance(150,150,Image.SCALE_FAST);

%>

<body>

<tr><td><img src='<%=newIMG>'></td></tr>

</body>

but the displayed with old size

what is wrong

regards

the_Orienta at 2007-7-10 2:16:40 > top of Java-index,Java Essentials,Java Programming...
# 5

ok resize the image is done but wenn i display it in jsp -- my.jsp <%

String _img = "home.jpg";

Image newIMG=

Toolkit.getDefaultToolkit().getImage(_img).getScaledInstance(150,150,Image.SCALE_FAST);

%>

<body>

<tr><td><img src='<%=newIMG>'></td></tr>

</body>

but the displayed with old size

what is wrong

regards

the_Orienta at 2007-7-10 2:16:40 > top of Java-index,Java Essentials,Java Programming...
# 6
As far as i concern it should be <%=newIMG%>, and no I got no idea how resize work in jsp ;p
Icycoola at 2007-7-10 2:16:40 > top of Java-index,Java Essentials,Java Programming...