| java.lang.Object javax.media.jai.BorderExtender javax.media.jai.BorderExtenderReflect
BorderExtenderReflect | final public class BorderExtenderReflect extends BorderExtender (Code) | | A subclass of BorderExtender that implements
border extension by filling all pixels outside of the image
bounds with copies of the whole image. For example, the image:
if extended by adding two extra rows to the top and bottom and
one extra column on the left and right sides, would become:
<| /| | |> |\ | <| /| |
\| <| | |/ |> | \| <| |
<| /| | |> |\ | <| /| |
\| <| | |/ |> | \| <| |
<| /| | |> |\ | <| /| |
This form of extension avoids discontinuities around the edges
of the image.
|
Method Summary | |
final public void | extend(WritableRaster raster, PlanarImage im) Fills in the portions of a given Raster that lie
outside the bounds of a given PlanarImage with
suitably reflected copies of the entire image.
The portion of raster that lies within
im.getBounds() is not altered.
Parameters: raster - The WritableRaster the border area ofwhich is to be filled with suitably reflected copiesof portions of the specified image. Parameters: im - The PlanarImage the data of which isto be reflected and used to fill theWritableRaster border. |
BorderExtenderReflect | BorderExtenderReflect()(Code) | | |
extend | final public void extend(WritableRaster raster, PlanarImage im)(Code) | | Fills in the portions of a given Raster that lie
outside the bounds of a given PlanarImage with
suitably reflected copies of the entire image.
The portion of raster that lies within
im.getBounds() is not altered.
Parameters: raster - The WritableRaster the border area ofwhich is to be filled with suitably reflected copiesof portions of the specified image. Parameters: im - The PlanarImage the data of which isto be reflected and used to fill theWritableRaster border. IllegalArgumentException if either parameter isnull . |
|
|