/** * Should perform the equivilent action as * createRendering followed by drawing the RenderedImage. * * @param g2d The Graphics2D to draw to. * @return true if the paint call succeeded, false if * for some reason the paint failed (in which * case a createRendering should be used). */ public boolean paintRable(Graphics2D g2d) { AffineTransform at = g2d.getTransform(); g2d.transform(getAffine()); GraphicsUtil.drawImage(g2d, getSource()); g2d.setTransform(at); return true; }
/** * Should perform the equivilent action as * createRendering followed by drawing the RenderedImage. * * @param g2d The Graphics2D to draw to. * @return true if the paint call succeeded, false if * for some reason the paint failed (in which * case a createRendering should be used). */ public boolean paintRable(Graphics2D g2d) { AffineTransform at = g2d.getTransform(); g2d.transform(getAffine()); GraphicsUtil.drawImage(g2d, getSource()); g2d.setTransform(at); return true; }
/** * Should perform the equivilent action as * createRendering followed by drawing the RenderedImage. * * @param g2d The Graphics2D to draw to. * @return true if the paint call succeeded, false if * for some reason the paint failed (in which * case a createRendering should be used). */ public boolean paintRable(Graphics2D g2d) { AffineTransform at = g2d.getTransform(); g2d.transform(getAffine()); GraphicsUtil.drawImage(g2d, getSource()); g2d.setTransform(at); return true; }
AffineTransform at = f.getAffine(); at.transform(hotSpot, hotSpot);
AffineTransform at = f.getAffine(); at.transform(hotSpot, hotSpot);
AffineTransform at = f.getAffine(); at.transform(hotSpot, hotSpot);