I am trying to create a image cropping tool in Java. I will need to retrieve the width and the height of the image. The cropping tool will need to trim the edges from the top right bottom and left (meaning I will b getting 4 values). All the data will then be passed to a servlet. Anyone knows how to get me started writing the servlet codings?
posted 8 years ago
Welcome to JavaRanch.
The javax.imageio.ImageIO.read method will provide you with a BufferedImage object, which you can query for the image's height and width, and use for image modifications. Some simple examples can be found here.