public Rectangle2D getBounds2D() { Filter src = getSource(); Rectangle2D r = src.getBounds2D(); return affine.createTransformedShape(r).getBounds2D(); } /**
public Rectangle2D getBounds2D() { Filter src = getSource(); Rectangle2D r = src.getBounds2D(); return affine.createTransformedShape(r).getBounds2D(); } /**
public Rectangle2D getBounds2D() { Filter src = getSource(); Rectangle2D r = src.getBounds2D(); return affine.createTransformedShape(r).getBounds2D(); } /**
/** * 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; }
public RenderedImage createRendering(RenderContext rc) { // Degenerate Affine no output image.. if (invAffine == null) return null; // Just copy over the rendering hints. RenderingHints rh = rc.getRenderingHints(); if (rh == null) rh = new RenderingHints(null); // Map the area of interest to our input... Shape aoi = rc.getAreaOfInterest(); if (aoi != null) aoi = invAffine.createTransformedShape(aoi); // update the current affine transform AffineTransform at = rc.getTransform(); at.concatenate(affine); // Return what our input creates (it should factor in our affine). return getSource().createRendering(new RenderContext(at, aoi, rh)); }
public RenderedImage createRendering(RenderContext rc) { // Degenerate Affine no output image.. if (invAffine == null) return null; // Just copy over the rendering hints. RenderingHints rh = rc.getRenderingHints(); if (rh == null) rh = new RenderingHints(null); // Map the area of interest to our input... Shape aoi = rc.getAreaOfInterest(); if (aoi != null) aoi = invAffine.createTransformedShape(aoi); // update the current affine transform AffineTransform at = rc.getTransform(); at.concatenate(affine); // Return what our input creates (it should factor in our affine). return getSource().createRendering(new RenderContext(at, aoi, rh)); }
public RenderedImage createRendering(RenderContext rc) { // Degenerate Affine no output image.. if (invAffine == null) return null; // Just copy over the rendering hints. RenderingHints rh = rc.getRenderingHints(); if (rh == null) rh = new RenderingHints(null); // Map the area of interest to our input... Shape aoi = rc.getAreaOfInterest(); if (aoi != null) aoi = invAffine.createTransformedShape(aoi); // update the current affine transform AffineTransform at = rc.getTransform(); at.concatenate(affine); // Return what our input creates (it should factor in our affine). return getSource().createRendering(new RenderContext(at, aoi, rh)); }