Lines Matching refs:img

60     public boolean copyImage(SunGraphics2D sg, Image img,
64 int imgw = img.getWidth(null);
65 int imgh = img.getHeight(null);
67 return renderImageCopy(sg, img, bgColor,
76 transformImage(sg, img, atfm, sg.interpolationType,
81 public boolean copyImage(SunGraphics2D sg, Image img,
86 return renderImageCopy(sg, img, bgColor,
90 scaleImage(sg, img, dx, dy, (dx + w), (dy + h),
95 public boolean scaleImage(SunGraphics2D sg, Image img, int x, int y,
99 int imgw = img.getWidth(null);
100 int imgh = img.getHeight(null);
110 if (renderImageScale(sg, img, bgColor, sg.interpolationType,
124 transformImage(sg, img, atfm, sg.interpolationType,
137 protected void transformImage(SunGraphics2D sg, Image img, int x, int y,
141 int imgw = img.getWidth(null);
142 int imgh = img.getHeight(null);
161 renderImageCopy(sg, img, null, x+itx, y+ity, 0, 0, imgw, imgh);
187 if (tryCopyOrScale(sg, img, 0, 0, imgw, imgh,
210 transformImage(sg, img, tx, interpType, 0, 0, imgw, imgh, null);
212 renderImageXform(sg, img, tx, interpType, 0, 0, imgw, imgh, null);
229 protected void transformImage(SunGraphics2D sg, Image img,
258 tryCopyOrScale(sg, img, sx1, sy1, sx2, sy2,
264 renderImageXform(sg, img, tx, interpType, sx1, sy1, sx2, sy2, bgColor);
275 Image img,
285 // First check if width and height are very close to img w&h.
294 renderImageCopy(sg, img, bgColor,
303 if (renderImageScale(sg, img, bgColor, interpType,
319 BufferedImage makeBufferedImage(Image img, Color bgColor, int type,
332 g2d.copyImage(img, 0, 0, sx1, sy1, width, height, null, null);
337 protected void renderImageXform(SunGraphics2D sg, Image img,
344 SurfaceData srcData = dstData.getSourceSurfaceData(img,
350 img = getBufferedImage(img);
351 srcData = dstData.getSourceSurfaceData(img,
365 img = makeBufferedImage(img, bgColor, BufferedImage.TYPE_INT_RGB,
372 srcData = dstData.getSourceSurfaceData(img,
392 img = makeBufferedImage(img, null, type, sx1, sy1, sx2, sy2);
398 srcData = dstData.getSourceSurfaceData(img,
550 protected boolean renderImageCopy(SunGraphics2D sg, Image img,
565 dstData.getSourceSurfaceData(img,
606 protected boolean renderImageScale(SunGraphics2D sg, Image img,
628 dstData.getSourceSurfaceData(img,
667 public boolean scaleImage(SunGraphics2D sg, Image img,
723 if (renderImageScale(sg, img, bgColor, sg.interpolationType,
738 final int scale = SurfaceManager.getImageScale(img);
739 final int imgW = img.getWidth(null) * scale;
740 final int imgH = img.getHeight(null) * scale;
769 transformImage(sg, img, atfm, sg.interpolationType,
825 protected BufferedImage getBufferedImage(Image img) {
826 if (img instanceof BufferedImage) {
827 return (BufferedImage)img;
830 return ((VolatileImage)img).getSnapshot();
1005 public boolean copyImage(SunGraphics2D sg, Image img,
1009 if (!(img instanceof ToolkitImage)) {
1010 return copyImage(sg, img, x, y, bgColor);
1012 ToolkitImage sunimg = (ToolkitImage)img;
1021 public boolean copyImage(SunGraphics2D sg, Image img,
1025 if (!(img instanceof ToolkitImage)) {
1026 return copyImage(sg, img, dx, dy, sx, sy, w, h, bgColor);
1028 ToolkitImage sunimg = (ToolkitImage)img;
1040 public boolean scaleImage(SunGraphics2D sg, Image img,
1045 if (!(img instanceof ToolkitImage)) {
1046 return scaleImage(sg, img, x, y, width, height, bgColor);
1048 ToolkitImage sunimg = (ToolkitImage)img;
1058 public boolean scaleImage(SunGraphics2D sg, Image img,
1063 if (!(img instanceof ToolkitImage)) {
1064 return scaleImage(sg, img, dx1, dy1, dx2, dy2,
1067 ToolkitImage sunimg = (ToolkitImage)img;
1077 public boolean transformImage(SunGraphics2D sg, Image img,
1080 if (!(img instanceof ToolkitImage)) {
1081 transformImage(sg, img, 0, 0, atfm, sg.interpolationType);
1084 ToolkitImage sunimg = (ToolkitImage)img;
1093 public void transformImage(SunGraphics2D sg, BufferedImage img,
1099 transformImage(sg, img, x, y,
1104 img = op.filter(img, null);
1107 copyImage(sg, img, x, y, null);