Lines Matching refs:sg2d
477 public boolean copyArea(SunGraphics2D sg2d, int x, int y, int w, int h, int dx, int dy) {
483 if (sg2d.transformState == SunGraphics2D.TRANSFORM_ANY_TRANSLATE ||
484 sg2d.transformState == SunGraphics2D.TRANSFORM_INT_TRANSLATE) {
485 offsetX = (int) sg2d.transform.getTranslateX();
486 offsetY = (int) sg2d.transform.getTranslateY();
487 } else if (sg2d.transformState != SunGraphics2D.TRANSFORM_ISIDENT) { return false; }
491 Shape clip = sg2d.getClip();
492 sg2d.setClip(getBounds());
495 Rectangle clippedCopyAreaRect = clipCopyArea(sg2d, x, y, w, h, dx, dy);
503 // sg2d.drawImage expects the destination rect to be in the coord space of the graphics2d. <rdar://3746194>
512 sg2d.drawImage(this.bim, x + dx, y + dy, x + dx + w, y + dy + h, x + offsetX, y + offsetY, x + w + offsetX, y + h + offsetY, null);
515 sg2d.setClip(clip);
526 public BufferedImage copyArea(SunGraphics2D sg2d, int x, int y, int w, int h, BufferedImage dstImage) {
540 public boolean xorSurfacePixels(SunGraphics2D sg2d, BufferedImage srcPixels, int x, int y, int w, int h, int colorXOR) {