maintain image quality after scale
Hi, i've got images(img1.png, img2.png, etc) that contain barcode. then i join 2 images (and scale it down because the real barcode image is quite large) into JPanel using buffered image to draw my image. i also used interpolation to enhanced my graphic. but after combine image and reproduce it to a file(now contain 2 image), the barcode can't be scan. i think that it's because of graphic problem. any solution to enhance or maintain the quality of image after being load in buffered image and scale(i scale it to 0.4)?
here is my code:
g2d = bi.createGraphics();
//g2 = (Graphics2D)g;
ImageIO.write(bi, "png", new File("out.png"));
g2.drawImage(bi, null, 0, 0);
Thanks and Regards,