BufferedImage)
that is suitable for the destination FilterContext.
No other processing is performed on the specified image object.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private Point2D | |
| private Filterable |
| Access | Constructor and Description |
|---|---|
| public | Identity(Filterable
the source image, or null src)Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public ImageData | filter(FilterContext
the fctx, BaseTransform FilterContext that determines the
environment (e.g. the graphics device or code path) on which
the filter operation will be performedan optional transform under which the filter and
its inputs will be viewed transform, Rectangle the device space (pixel) bounds of the output
image or window or clip into which the result of the Effect will
be rendered, or null if the output dimensions are not known. outputClip, Object an object which might be used to render
the results of the effect directly. renderHelper, Effect the default input defaultInput)Effect to be used in
all cases where a filter has a null input.Implements abstract com. Applies this filter effect to the series of images represented by
the input |
| public Effect. | getAccelType(FilterContext fctx)
Implements abstract com. Returns one of the |
| public BaseBounds | getBounds(BaseTransform
the transform the effect will be viewed under transform, Effect the default input defaultInput)Effect to be used in
all cases where a filter has a null inputImplements abstract com. Returns the bounding box that will be affected by this filter
operation when viewed under the specified |
| public DirtyRegionContainer | getDirtyRegions(Effect
the default input defaultInput, DirtyRegionPool Effect to be used in
all cases where a filter has a null inputthe pool of dirty regions regionPool)Overrides com. Returns the dirty region container containing dirty regions affected by this filter operation. |
| public final Point2D | Returns: the location of the source imageReturns the location of the source image, relative to the untransformed source content bounds. |
| public final Filterable | |
| public boolean | reducesOpaquePixels()
Implements abstract com. Whether an opacity for any pixel is different (lower) than the corresponding pixel in the default input. |
| public void | setLocation(Point2D
the new location of the source image pt)Sets the location of the source image, relative to the untransformed source content bounds. |
| public void |
| datacache | back to summary |
|---|---|
| private final Map<FilterContext, ImageData> datacache | |
| loc | back to summary |
|---|---|
| private Point2D loc | |
| src | back to summary |
|---|---|
| private Filterable src | |
| Identity | back to summary |
|---|---|
| public Identity(Filterable src) Constructs a new
| |
| clearCache | back to summary |
|---|---|
| private void clearCache() | |
| filter | back to summary |
|---|---|
| public ImageData filter(FilterContext fctx, BaseTransform transform, Rectangle outputClip, Object renderHelper, Effect defaultInput) Implements abstract com. Doc from com. Applies this filter effect to the series of images represented by
the input
The filter might be able to use the
Note that the
boolean valid;
do {
ImageData res = filter(fctx, transform, clip, renderer, defaultInput);
if (res == null) {
break;
}
if (valid = res.validate(fctx)) {
// Render res.getImage() to the appropriate destination
// or use it as an input to another chain of effects.
}
res.unref();
} while (!valid);
| |
| getAccelType | back to summary |
|---|---|
| public Effect. Implements abstract com. Doc from com. Returns one of the | |
| getBounds | back to summary |
|---|---|
| public BaseBounds getBounds(BaseTransform transform, Effect defaultInput) Implements abstract com. Doc from com. Returns the bounding box that will be affected by this filter
operation when viewed under the specified
| |
| getDirtyRegions | back to summary |
|---|---|
| public DirtyRegionContainer getDirtyRegions(Effect defaultInput, DirtyRegionPool regionPool) Overrides com. Doc from com. Returns the dirty region container containing dirty regions affected by this filter operation.
| |
| getLocation | back to summary |
|---|---|
| public final Point2D getLocation() Returns the location of the source image, relative to the untransformed source content bounds.
| |
| getSource | back to summary |
|---|---|
| public final Filterable getSource() Returns the source image (can be null).
| |
| reducesOpaquePixels | back to summary |
|---|---|
| public boolean reducesOpaquePixels() Implements abstract com. Doc from com. Whether an opacity for any pixel is different (lower) than the corresponding pixel in the default input. It is always safe to return true from this method, though the consequences may be that the caller chooses to not utilize a planned optimization.
| |
| setLocation | back to summary |
|---|---|
| public void setLocation(Point2D pt) Sets the location of the source image, relative to the untransformed source content bounds.
| |
| setSource | back to summary |
|---|---|
| public void setSource(Filterable src) Sets the source image.
| |