Returns an instance of BorderExtender that
implements a given extension policy. The policies understood
by this method are:
BORDER_ZERO : set sample values to zero.
BORDER_COPY : set sample values to copies of
the nearest valid pixel. For example, pixels to the left of
the valid rectangle will take on the value of the valid edge
pixel in the same row. Pixels both above and to the left of
the valid rectangle will take on the value of the upper-left
pixel.
BORDER_REFLECT : the output image is defined
as if mirrors were placed along the edges of the source image.
Thus if the left edge of the valid rectangle lies at X = 10,
pixel (9, Y) will be a copy of pixel (10, Y); pixel (6, Y)
will be a copy of pixel (13, Y).
BORDER_WRAP : the source image is tiled repeatedly
in the plane.
Note that this method may not be used to create an instance
of BorderExtenderConstant .
Any other input value will cause an
IllegalArgumentException to be thrown.
Parameters: extenderType - The type of BorderExtender to create.Must be one of the predefined class constantsBORDER_COPY ,BORDER_REFLECT ,BORDER_WRAP , orBORDER_ZERO . IllegalArgumentException if the suppliedparameter is not one of the supported predefined constants. |