A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
cropping image in a servlet
Joined: Jan 25, 2011
Jan 25, 2011 07:37:12
I have a problem with image cropping, i use jcrop and a
in my servlet the image is cropped correctly but the top
left x and y coordinate of the result rectangle is always equal to the 0,0
coordinate of the source rectangle, example:
with this code:
int x = new Integer( request.getParameter("x"));//
int y = new Integer( request.getParameter("y"));
cropped=outImage.getSubimage(x, y, w, h);
ImageIO.write(cropped,ext, new File("...."));
I get always as result an image tath is cropped from x and y equal to 0 0.
i have checked x and y and they are not equal to 0.
Can you help me?
subject: cropping image in a servlet
How can i have the coordinate on a buffered image ?
Getting pixel information for mouse movement
How do you crop an image in Java?
Isometric assistance needed
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014