public class FilterResRable8Bit extends AbstractRable implements FilterResRable, PaintRable
props, srcs, stampHINTS_OBSERVED| Constructor and Description |
|---|
FilterResRable8Bit() |
FilterResRable8Bit(Filter src,
int filterResX,
int filterResY) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allPaintRable(RenderableImage ri)
This returns true if
ri and all of ri's
sources implement the PaintRable interface. |
RenderedImage |
createRendering(RenderContext renderContext) |
boolean |
distributeAcross(RenderableImage src,
Graphics2D g2d)
This function attempts to distribute the filterRes operation
across src.
|
int |
getFilterResolutionX()
Returns the resolution along the X axis.
|
int |
getFilterResolutionY()
Returns the resolution along the Y axis.
|
Filter |
getSource()
Returns the source to be cropped.
|
boolean |
paintRable(Graphics2D g2d)
Should perform the equivilent action as
createRendering followed by drawing the RenderedImage.
|
void |
setFilterResolutionX(int filterResolutionX)
Sets the resolution along the X axis, i.e., the maximum
size for intermediate images along that axis.
|
void |
setFilterResolutionY(int filterResolutionY)
Sets the resolution along the Y axis, i.e., the maximum
size for intermediate images along that axis.
|
void |
setSource(Filter src)
Sets the source to be cropped
|
createDefaultRendering, createScaledRendering, getBounds2D, getDependencyRegion, getDirtyRegion, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getTimeStamp, getWidth, init, init, init, init, isDynamic, touchclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBounds2D, getDependencyRegion, getDirtyRegion, getTimeStampcreateDefaultRendering, createScaledRendering, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getWidth, isDynamicpublic FilterResRable8Bit()
public FilterResRable8Bit(Filter src, int filterResX, int filterResY)
public Filter getSource()
getSource in interface FilterResRablepublic void setSource(Filter src)
setSource in interface FilterResRablesrc - image to offset.public int getFilterResolutionX()
getFilterResolutionX in interface FilterResRablepublic void setFilterResolutionX(int filterResolutionX)
setFilterResolutionX in interface FilterResRablepublic int getFilterResolutionY()
getFilterResolutionY in interface FilterResRablepublic void setFilterResolutionY(int filterResolutionY)
setFilterResolutionY in interface FilterResRablepublic boolean allPaintRable(RenderableImage ri)
ri and all of ri's
sources implement the PaintRable interface. This is used to
indicate that the chain has a good potential for bypassing the
filterRes operation entirely.
Ideally there would be a checkPaintRable method in PaintRable
that could be used to get a definate answer about a filters
ability to draw directly to a Graphics2D (this can sometimes
'fail' because of the way the Graphics2D is currently
configured).public boolean distributeAcross(RenderableImage src, Graphics2D g2d)
public boolean paintRable(Graphics2D g2d)
paintRable in interface PaintRableg2d - The Graphics2D to draw to.public RenderedImage createRendering(RenderContext renderContext)
createRendering in interface RenderableImageCopyright © 2000–2020 Apache Software Foundation. All rights reserved.