Lines Matching refs:img

2510     private static Rectangle getImageRegion(RenderedImage img,
2516 new Rectangle(img.getMinX(), img.getMinY(),
2517 img.getWidth(), img.getHeight());
2578 * @param img The image to be drawn. Does nothing if img is null.
2586 public void drawRenderedImage(RenderedImage img,
2589 if (img == null) {
2594 if (img instanceof BufferedImage) {
2595 BufferedImage bufImg = (BufferedImage)img;
2619 Rectangle region = getImageRegion(img,
2640 drawTranslatedRenderedImage(img, region,
2647 Raster raster = img.getData(region);
2686 ColorModel cm = img.getColorModel();
2722 private void drawTranslatedRenderedImage(RenderedImage img,
2727 int tileGridXOffset = img.getTileGridXOffset();
2728 int tileGridYOffset = img.getTileGridYOffset();
2729 int tileWidth = img.getTileWidth();
2730 int tileHeight = img.getTileHeight();
2745 ColorModel colorModel = img.getColorModel();
2753 Raster raster = img.getTile(tx, ty);
2806 public void drawRenderableImage(RenderableImage img,
2809 if (img == null) {
2827 RenderedImage rendering = img.createRendering(rc);
3022 private static boolean isHiDPIImage(final Image img) {
3023 return SurfaceManager.getImageScale(img) != 1;
3026 private boolean drawHiDPIImage(Image img, int dx1, int dy1, int dx2,
3029 final int scale = SurfaceManager.getImageScale(img);
3035 return imagepipe.scaleImage(this, img, dx1, dy1, dx2, dy2, sx1, sy1,
3040 return imagepipe.scaleImage(this, img, dx1, dy1, dx2, dy2, sx1,
3057 public boolean drawImage(Image img, int x, int y, int width, int height,
3059 return drawImage(img, x, y, width, height, null, observer);
3070 public boolean copyImage(Image img, int dx, int dy, int sx, int sy,
3074 return imagepipe.copyImage(this, img, dx, dy, sx, sy,
3079 return imagepipe.copyImage(this, img, dx, dy, sx, sy,
3096 public boolean drawImage(Image img, int x, int y, int width, int height,
3099 if (img == null) {
3107 final int imgW = img.getWidth(null);
3108 final int imgH = img.getHeight(null);
3109 if (isHiDPIImage(img)) {
3110 return drawHiDPIImage(img, x, y, x + width, y + height, 0, 0, imgW,
3115 return copyImage(img, x, y, 0, 0, width, height, bg, observer);
3119 return imagepipe.scaleImage(this, img, x, y, width, height,
3124 return imagepipe.scaleImage(this, img, x, y, width, height,
3140 public boolean drawImage(Image img, int x, int y, ImageObserver observer) {
3141 return drawImage(img, x, y, null, observer);
3148 public boolean drawImage(Image img, int x, int y, Color bg,
3151 if (img == null) {
3155 if (isHiDPIImage(img)) {
3156 final int imgW = img.getWidth(null);
3157 final int imgH = img.getHeight(null);
3158 return drawHiDPIImage(img, x, y, x + imgW, y + imgH, 0, 0, imgW,
3163 return imagepipe.copyImage(this, img, x, y, bg, observer);
3167 return imagepipe.copyImage(this, img, x, y, bg, observer);
3183 public boolean drawImage(Image img,
3187 return drawImage(img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, null,
3195 public boolean drawImage(Image img,
3200 if (img == null) {
3210 if (isHiDPIImage(img)) {
3211 return drawHiDPIImage(img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2,
3238 return copyImage(img, dstX, dstY, srcX, srcY,
3243 return imagepipe.scaleImage(this, img, dx1, dy1, dx2, dy2,
3249 return imagepipe.scaleImage(this, img, dx1, dy1, dx2, dy2,
3273 * @param img The image to be drawn.
3281 public boolean drawImage(Image img,
3285 if (img == null) {
3290 return drawImage(img, 0, 0, null, observer);
3293 if (isHiDPIImage(img)) {
3294 final int w = img.getWidth(null);
3295 final int h = img.getHeight(null);
3298 boolean result = drawHiDPIImage(img, 0, 0, w, h, 0, 0, w, h, null,
3306 return imagepipe.transformImage(this, img, xform, observer);
3310 return imagepipe.transformImage(this, img, xform, observer);