Hi Friends,

I want to zoom in and Zoom out TYPE_USHORT_565_RGB image.

i have tried this by following method. The result is,getting original image when scaling factor is 1,2,3..(only round values).For other values like 1.01...1.1..,getting transparent image.
This is my code.

Graphics2D g2 = (Graphics2D)g;
g2.setRenderingHint(RenderingHints.KEY_INTERPOLATI ON, RenderingHints.VALUE_INTERPOLATION_BILINEAR);
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASIN G, RenderingHints.VALUE_ANTIALIAS_ON);
ffineTransform tx = AffineTransform.getScaleInstance(m_scale, m_scale);
g2.drawImage(image,tx,null);

Here,image .gettype() is BufferedImage.TYPE_USHORT_555_RGB.
if m_scale = 1,2,3 ..zooming is working fine.
if m_scale =1.1,1.2,1.3...getting transparent image when zoom in the image.

Please let me know if you ppl find any solution.

Thanks in advance.