How do I create an new image as part (rectangle) of a source image?

John Zukowski

Look at using the CropImageFilter.

Image image = ...;
ImageFilter filter = new CropImageFilter(x,y,width,height);
Image newImage = createImage(new FilteredImageSource(image.getSource(), filter));
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact