Hi,
Can anybody explain why that doesn't work:
BufferedImage img = new BufferedImage(100,100);
Graphics2D gfx = img.createGraphics();
gfx.drawImage(img.getSubimage(0,50,100,50), 0, 50, null);
I don't know any other possibility to trim an image, do you?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.