/** * This returns the current image being masked by the mask node. * @return The image to mask */ public Filter getSource() { return (Filter)getSources().get(0); }
/** * The source to be masked by the mask node. * @param src The Image to be masked. */ public void setSource(Filter src) { init(src, null); }
public ClipRable8Bit(Filter src, Shape clipPath) { super(src, null); setClipPath(clipPath); setUseAntialiasedClip(false); }
if (aoi == null) aoi = getBounds2D(); Rectangle2D rect = getBounds2D(); Rectangle2D clipRect = clipPath.getBounds2D(); Rectangle2D aoiRect = aoi.getBounds2D(); BufferedImage.TYPE_BYTE_GRAY); Shape devShape = usr2dev.createTransformedShape(getClipPath()); Rectangle devAOIR; devAOIR = usr2dev.createTransformedShape(aoi).getBounds(); ri = getSource().createRendering(new RenderContext(usr2dev, rect, rh));
clip = new Rectangle2D.Double(0,0,b.getWidth(), b.getHeight()); Filter filter = imgNode.getGraphicsNodeRable(true); imgNode.setClip(new ClipRable8Bit(filter, clip));
/** * Set the default behaviour of anti-aliased clipping. * for this clip object. */ public void setUseAntialiasedClip(boolean useAA) { touch(); this.useAA = useAA; }
/** * Pass-through: returns the source's bounds */ public Rectangle2D getBounds2D(){ return getSource().getBounds2D(); }
if (aoi == null) aoi = getBounds2D(); Rectangle2D rect = getBounds2D(); Rectangle2D clipRect = clipPath.getBounds2D(); Rectangle2D aoiRect = aoi.getBounds2D(); BufferedImage.TYPE_BYTE_GRAY); Shape devShape = usr2dev.createTransformedShape(getClipPath()); Rectangle devAOIR; devAOIR = usr2dev.createTransformedShape(aoi).getBounds(); ri = getSource().createRendering(new RenderContext(usr2dev, rect, rh));
clip = new Rectangle2D.Double(0,0,b.getWidth(), b.getHeight()); Filter filter = imgNode.getGraphicsNodeRable(true); imgNode.setClip(new ClipRable8Bit(filter, clip));
/** * Set the clip path to use. * The path will be filled with opaque white. * @param clipPath The clip path to use */ public void setClipPath(Shape clipPath) { touch(); this.clipPath = clipPath; }
/** * Pass-through: returns the source's bounds */ public Rectangle2D getBounds2D(){ return getSource().getBounds2D(); }
if (aoi == null) aoi = getBounds2D(); Rectangle2D rect = getBounds2D(); Rectangle2D clipRect = clipPath.getBounds2D(); Rectangle2D aoiRect = aoi.getBounds2D(); BufferedImage.TYPE_BYTE_GRAY); Shape devShape = usr2dev.createTransformedShape(getClipPath()); Rectangle devAOIR; devAOIR = usr2dev.createTransformedShape(aoi).getBounds(); ri = getSource().createRendering(new RenderContext(usr2dev, rect, rh));
public ClipRable8Bit(Filter src, Shape clipPath) { super(src, null); setClipPath(clipPath); setUseAntialiasedClip(false); }
clip = new Rectangle2D.Double(0,0,b.getWidth(), b.getHeight()); Filter filter = imgNode.getGraphicsNodeRable(true); imgNode.setClip(new ClipRable8Bit(filter, clip));
/** * Set the default behaviour of anti-aliased clipping. * for this clip object. */ public void setUseAntialiasedClip(boolean useAA) { touch(); this.useAA = useAA; }
/** * This returns the current image being masked by the mask node. * @return The image to mask */ public Filter getSource() { return (Filter)getSources().get(0); }
/** * The source to be masked by the mask node. * @param src The Image to be masked. */ public void setSource(Filter src) { init(src, null); }
/** * Pass-through: returns the source's bounds */ public Rectangle2D getBounds2D(){ return getSource().getBounds2D(); }
public ClipRable8Bit(Filter src, Shape clipPath, boolean useAA) { super(src, null); setClipPath(clipPath); setUseAntialiasedClip(useAA); }
node.setClip(new ClipRable8Bit(filter, clip)); } catch (java.awt.geom.NoninvertibleTransformException ex) {}