Enum Class VipsExtend

java.lang.Object
java.lang.Enum<VipsExtend>
app.photofox.vipsffm.enums.VipsExtend
All Implemented Interfaces:
VEnum, VNamedEnum, Serializable, Comparable<VipsExtend>, Constable

public enum VipsExtend extends Enum<VipsExtend> implements VNamedEnum

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...).

  • Enum Constant Details

    • EXTEND_BLACK

      public static final VipsExtend EXTEND_BLACK

      extend with black (all 0) pixels

    • EXTEND_COPY

      public static final VipsExtend EXTEND_COPY

      copy the image edges

    • EXTEND_REPEAT

      public static final VipsExtend EXTEND_REPEAT

      repeat the whole image

    • EXTEND_MIRROR

      public static final VipsExtend EXTEND_MIRROR

      mirror the whole image

    • EXTEND_WHITE

      public static final VipsExtend EXTEND_WHITE

      extend with white (all bits set) pixels

    • EXTEND_BACKGROUND

      public static final VipsExtend EXTEND_BACKGROUND

      extend with colour from the background property

    • EXTEND_LAST

      public static final VipsExtend EXTEND_LAST
  • Field Details

  • Method Details

    • values

      public static VipsExtend[] 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

      public static VipsExtend valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getName

      public String getName()
      Specified by:
      getName in interface VNamedEnum
    • getNickname

      public String getNickname()
      Specified by:
      getNickname in interface VNamedEnum
    • getRawValue

      public int getRawValue()
      Specified by:
      getRawValue in interface VEnum