thanks for the when i run that it throws exception "Exception in thread "main" java.lang.OutOfMemoryError: Java heap space"
my code is as below:
BufferedImage buggImg = ImageIO.read(new File("Image1.jpg"));
AffineTransform tx = new AffineTransform();
tx.scale(200, 150);
AffineTransformOp op = new AffineTransformOp(tx, AffineTransformOp.TYPE_BILINEAR);
buggImg = op.filter(buggImg, null);
ImageIO.write(scale(buggImg, 200), "jpg", new File("image2.jpg"));