|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.media.jai.BorderExtender | +--javax.media.jai.BorderExtenderReflect
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:
|> |\ |
<| /| | |> |\ | <| /| |
\| <| | |/ |> | \| <| |
<| /| | |> |\ | <| /| |
\| <| | |/ |> | \| <| |
<| /| | |> |\ | <| /| |
This form of extension avoids discontinuities around the edges of the image.
Fields inherited from class javax.media.jai.BorderExtender |
BORDER_COPY, BORDER_REFLECT, BORDER_WRAP, BORDER_ZERO |
Method Summary | |
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. |
Methods inherited from class javax.media.jai.BorderExtender |
createInstance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public final void extend(WritableRaster raster, PlanarImage im)
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.
extend
in class BorderExtender
raster
- The WritableRaster
the border area of
which is to be filled with suitably reflected copies
of portions of the specified image.im
- The PlanarImage
the data of which is
to be reflected and used to fill the
WritableRaster
border.IllegalArgumentException
- if either parameter is
null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |