/** * Paints this node without applying Filter, Mask, Composite and clip. * * @param g2d the Graphics2D to use */ public void primitivePaint(Graphics2D g2d) { if (image == null) return; GraphicsUtil.drawImage(g2d, image); }
/** * Paints this node without applying Filter, Mask, Composite and clip. * * @param g2d the Graphics2D to use */ public void primitivePaint(Graphics2D g2d) { if (image == null) return; GraphicsUtil.drawImage(g2d, image); }
/** * Paints this node without applying Filter, Mask, Composite and clip. * * @param g2d the Graphics2D to use */ public void primitivePaint(Graphics2D g2d) { if (image == null) return; GraphicsUtil.drawImage(g2d, image); }
/** * Draws <code>ri</code> into <code>g2d</code>. It does this be * requesting tiles from <code>ri</code> and drawing them individually * in <code>g2d</code> it also takes care of some colorspace and alpha * issues. * @param g2d The Graphics2D to draw into. * @param ri The image to be drawn. */ public static void drawImage(Graphics2D g2d, RenderedImage ri) { drawImage(g2d, wrap(ri)); }
/** * Draws <code>ri</code> into <code>g2d</code>. It does this be * requesting tiles from <code>ri</code> and drawing them individually * in <code>g2d</code> it also takes care of some colorspace and alpha * issues. * @param g2d The Graphics2D to draw into. * @param ri The image to be drawn. */ public static void drawImage(Graphics2D g2d, RenderedImage ri) { drawImage(g2d, wrap(ri)); }
/** * Draws <code>ri</code> into <code>g2d</code>. It does this be * requesting tiles from <code>ri</code> and drawing them individually * in <code>g2d</code> it also takes care of some colorspace and alpha * issues. * @param g2d The Graphics2D to draw into. * @param ri The image to be drawn. */ public static void drawImage(Graphics2D g2d, RenderedImage ri) { drawImage(g2d, wrap(ri)); }
/** * Should perform the equivilent action as * createRendering followed by drawing the RenderedImage to * Graphics2D, or return false. * * @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) { // This optimization only apply if we are using // SrcOver. Otherwise things break... Composite c = g2d.getComposite(); if (!SVGComposite.OVER.equals(c)) return false; GraphicsUtil.drawImage(g2d, getSource()); return true; }
/** * Should perform the equivilent action as * createRendering followed by drawing the RenderedImage to * Graphics2D, or return false. * * @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) { // This optimization only apply if we are using // SrcOver. Otherwise things break... Composite c = g2d.getComposite(); if (!SVGComposite.OVER.equals(c)) return false; GraphicsUtil.drawImage(g2d, getSource()); 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 to * Graphics2D, or return false. * * @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) { // This optimization only apply if we are using // SrcOver. Otherwise things break... Composite c = g2d.getComposite(); if (!SVGComposite.OVER.equals(c)) return false; GraphicsUtil.drawImage(g2d, getSource()); 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; }
drawImage(g2d, GraphicsUtil.wrap(ri)); g2d.setTransform(at);
/** * Should perform the equivilent action as * createRendering followed by drawing the RenderedImage to * Graphics2D, or return false. * * @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) { // This optimization only apply if we are using // SrcOver. Otherwise things break... Composite c = g2d.getComposite(); if (!SVGComposite.OVER.equals(c)) return false; if (getPadMode() != PadMode.ZERO_PAD) return false; Rectangle2D padBounds = getPadRect(); Shape clip = g2d.getClip(); g2d.clip(padBounds); GraphicsUtil.drawImage(g2d, getSource()); g2d.setClip(clip); return true; }
/** * Should perform the equivilent action as * createRendering followed by drawing the RenderedImage to * Graphics2D, or return false. * * @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) { // This optimization only apply if we are using // SrcOver. Otherwise things break... Composite c = g2d.getComposite(); if (!SVGComposite.OVER.equals(c)) return false; if (getPadMode() != PadMode.ZERO_PAD) return false; Rectangle2D padBounds = getPadRect(); Shape clip = g2d.getClip(); g2d.clip(padBounds); GraphicsUtil.drawImage(g2d, getSource()); g2d.setClip(clip); return true; }
/** * Should perform the equivilent action as * createRendering followed by drawing the RenderedImage to * Graphics2D, or return false. * * @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) { // This optimization only apply if we are using // SrcOver. Otherwise things break... Composite c = g2d.getComposite(); if (!SVGComposite.OVER.equals(c)) return false; if (getPadMode() != PadMode.ZERO_PAD) return false; Rectangle2D padBounds = getPadRect(); Shape clip = g2d.getClip(); g2d.clip(padBounds); GraphicsUtil.drawImage(g2d, getSource()); g2d.setClip(clip); return true; }
GraphicsUtil.drawImage(g2d, (Filter) o);
GraphicsUtil.drawImage(g2d, (Filter) o);
g2d.setRenderingHints(rc.getRenderingHints()); drawImage(g2d, filter);
g2d.setRenderingHints(rc.getRenderingHints()); drawImage(g2d, filter);