Enum Class HwmfBitmapDib.Compression

java.lang.Object
java.lang.Enum<HwmfBitmapDib.Compression>
org.apache.poi.hwmf.record.HwmfBitmapDib.Compression
All Implemented Interfaces:
Serializable, Comparable<HwmfBitmapDib.Compression>, Constable
Enclosing class:
HwmfBitmapDib

public static enum HwmfBitmapDib.Compression extends Enum<HwmfBitmapDib.Compression>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The bitmap is not compressed and the color table consists of three DWORD color masks that specify the red, green, and blue components, respectively, of each pixel.
    The image is an uncompressed CMYK format.
    A CMYK format that uses RLE compression for bitmaps with 4 bits per pixel.
    A CMYK format that uses RLE compression for bitmaps with 8 bits per pixel.
    The image is a JPEG image, as specified in [JFIF].
    The image is a PNG image, as specified in [RFC2083].
    The bitmap is in uncompressed red green blue (RGB) format that is not compressed and does not use color masks.
    An RGB format that uses RLE compression for bitmaps with 4 bits per pixel.
    An RGB format that uses run-length encoding (RLE) compression for bitmaps with 8 bits per pixel.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • BI_RGB

      public static final HwmfBitmapDib.Compression BI_RGB
      The bitmap is in uncompressed red green blue (RGB) format that is not compressed and does not use color masks.
    • BI_RLE8

      public static final HwmfBitmapDib.Compression BI_RLE8
      An RGB format that uses run-length encoding (RLE) compression for bitmaps with 8 bits per pixel. The compression uses a 2-byte format consisting of a count byte followed by a byte containing a color index.
    • BI_RLE4

      public static final HwmfBitmapDib.Compression BI_RLE4
      An RGB format that uses RLE compression for bitmaps with 4 bits per pixel. The compression uses a 2-byte format consisting of a count byte followed by two word-length color indexes.
    • BI_BITFIELDS

      public static final HwmfBitmapDib.Compression BI_BITFIELDS
      The bitmap is not compressed and the color table consists of three DWORD color masks that specify the red, green, and blue components, respectively, of each pixel. This is valid when used with 16 and 32-bits per pixel bitmaps.
    • BI_JPEG

      public static final HwmfBitmapDib.Compression BI_JPEG
      The image is a JPEG image, as specified in [JFIF]. This value SHOULD only be used in certain bitmap operations, such as JPEG pass-through. The application MUST query for the pass-through support, since not all devices support JPEG pass-through. Using non-RGB bitmaps MAY limit the portability of the metafile to other devices. For instance, display device contexts generally do not support this pass-through.
    • BI_PNG

      public static final HwmfBitmapDib.Compression BI_PNG
      The image is a PNG image, as specified in [RFC2083]. This value SHOULD only be used certain bitmap operations, such as JPEG/PNG pass-through. The application MUST query for the pass-through support, because not all devices support JPEG/PNG pass-through. Using non-RGB bitmaps MAY limit the portability of the metafile to other devices. For instance, display device contexts generally do not support this pass-through.
    • BI_CMYK

      public static final HwmfBitmapDib.Compression BI_CMYK
      The image is an uncompressed CMYK format.
    • BI_CMYKRLE8

      public static final HwmfBitmapDib.Compression BI_CMYKRLE8
      A CMYK format that uses RLE compression for bitmaps with 8 bits per pixel. The compression uses a 2-byte format consisting of a count byte followed by a byte containing a color index.
    • BI_CMYKRLE4

      public static final HwmfBitmapDib.Compression BI_CMYKRLE4
      A CMYK format that uses RLE compression for bitmaps with 4 bits per pixel. The compression uses a 2-byte format consisting of a count byte followed by two word-length color indexes.
  • Method Details

    • values

      public static HwmfBitmapDib.Compression[] 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 HwmfBitmapDib.Compression 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