Enum Class Photometric

java.lang.Object
java.lang.Enum<Photometric>
org.aoju.bus.image.nimble.Photometric
All Implemented Interfaces:
Serializable, Comparable<Photometric>, Constable

public enum Photometric extends Enum<Photometric>
Since:
Java 17+
Author:
Kimi Liu
  • Enum Constant Details

    • MONOCHROME1

      public static final Photometric MONOCHROME1
    • MONOCHROME2

      public static final Photometric MONOCHROME2
    • PALETTE_COLOR

      public static final Photometric PALETTE_COLOR
    • RGB

      public static final Photometric RGB
    • YBR_FULL

      public static final Photometric YBR_FULL
    • YBR_FULL_422

      public static final Photometric YBR_FULL_422
    • YBR_ICT

      public static final Photometric YBR_ICT
    • YBR_PARTIAL_420

      public static final Photometric YBR_PARTIAL_420
    • YBR_PARTIAL_422

      public static final Photometric YBR_PARTIAL_422
    • YBR_RCT

      public static final Photometric YBR_RCT
  • Method Details

    • values

      public static Photometric[] 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 Photometric 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
    • fromString

      public static Photometric fromString(String s)
    • frameLength

      public int frameLength(int w, int h, int samples, int bitsAllocated)
    • isMonochrome

      public boolean isMonochrome()
    • isYBR

      public boolean isYBR()
    • compress

      public Photometric compress(String tsuid)
    • isInverse

      public boolean isInverse()
    • isSubSampled

      public boolean isSubSampled()
    • createColorModel

      public abstract ColorModel createColorModel(int bits, int dataType, Attributes ds)
    • createSampleModel

      public SampleModel createSampleModel(int dataType, int w, int h, int samples, boolean banded)