c*****t 发帖数: 1879 | 1 Could anybody help me w/ drawImage function?
I have an IndexColorModel image and tried to draw it on screen.
When there is no resize, everything is okay.
However, when I try to draw the image with resizing, exception occurred.
The function that I used to draw image is
g.drawImage (m_image, 0, 0, m_width * 2, m_height * 2, null);
(* 2 is the scale factor);
The exception is
java.awt.image.ImagingOpException: Unable to transform src image
at java.awt.image.AffineTransformOp.filter(Affi |
|