Enum Class VipsExtend
- All Implemented Interfaces:
VEnum
,VNamedEnum
,Serializable
,Comparable<VipsExtend>
,Constable
See VImage.embed(int, int, int, int, app.photofox.vipsffm.VipsOption...)
, VImage.conv(app.photofox.vipsffm.VImage, app.photofox.vipsffm.VipsOption...)
, VImage.affine(java.util.List<java.lang.Double>, app.photofox.vipsffm.VipsOption...)
and so on.
When the edges of an image are extended, you can specify how you want the extension done.
EXTEND_BLACK
--- new pixels are black, ie. all bits are zero.
EXTEND_COPY
--- each new pixel takes the value of the nearest edge
pixel
EXTEND_REPEAT
--- the image is tiled to fill the new area
EXTEND_MIRROR
--- the image is reflected and tiled to reduce hash
edges
EXTEND_WHITE
--- new pixels are white, ie. all bits are set
EXTEND_BACKGROUND
--- colour set from the background
property
We have to specify the exact value of each enum member since we have to keep these frozen for back compat with vips7.
See also: VImage.embed(int, int, int, int, app.photofox.vipsffm.VipsOption...)
.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionextend with colour from thebackground
propertyextend with black (all 0) pixelscopy the image edgesmirror the whole imagerepeat the whole imageextend with white (all bits set) pixels -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
int
static VipsExtend
Returns the enum constant of this class with the specified name.static VipsExtend[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXTEND_BLACK
extend with black (all 0) pixels
-
EXTEND_COPY
copy the image edges
-
EXTEND_REPEAT
repeat the whole image
-
EXTEND_MIRROR
mirror the whole image
-
EXTEND_WHITE
extend with white (all bits set) pixels
-
EXTEND_BACKGROUND
extend with colour from the
background
property -
EXTEND_LAST
-
-
Field Details
-
parentName
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
- Specified by:
getName
in interfaceVNamedEnum
-
getNickname
- Specified by:
getNickname
in interfaceVNamedEnum
-
getRawValue
public int getRawValue()- Specified by:
getRawValue
in interfaceVEnum
-