Package digilib.image

Enum ImageLoaderDocuImage.Hacks

java.lang.Object
java.lang.Enum<ImageLoaderDocuImage.Hacks>
digilib.image.ImageLoaderDocuImage.Hacks
All Implemented Interfaces:
Serializable, Comparable<ImageLoaderDocuImage.Hacks>, java.lang.constant.Constable
Enclosing class:
ImageLoaderDocuImage

protected static enum ImageLoaderDocuImage.Hacks extends Enum<ImageLoaderDocuImage.Hacks>
hacks for specific platform bugs
  • Enum Constant Details

    • needsInvertRgba

      public static final ImageLoaderDocuImage.Hacks needsInvertRgba
      table for LookupOp for inversion needs four channels including alpha
    • needsRescaleRgba

      public static final ImageLoaderDocuImage.Hacks needsRescaleRgba
      table for RescaleOp for enhance needs four channels
    • needsMapBgr

      public static final ImageLoaderDocuImage.Hacks needsMapBgr
      destination image type for LookupOp(mapBgrByteTable) needs to be (A)BGR
    • forceDestForScaleCustom

      public static final ImageLoaderDocuImage.Hacks forceDestForScaleCustom
      set destination type for scale operation
    • needsJpegWriteRgb

      public static final ImageLoaderDocuImage.Hacks needsJpegWriteRgb
      JPEG writer can't deal with RGBA
    • needsPngWriteProfile

      public static final ImageLoaderDocuImage.Hacks needsPngWriteProfile
      add ICC profile to PNG metadata manually
    • needsPngLoadProfile

      public static final ImageLoaderDocuImage.Hacks needsPngLoadProfile
      load ICC profile from PNG metadata manually
    • force16BitTo8

      public static final ImageLoaderDocuImage.Hacks force16BitTo8
      convert images with 16 bit depth to 8 bit depth
    • force16BitToSrgb8

      public static final ImageLoaderDocuImage.Hacks force16BitToSrgb8
      convert images with 16 bit depth to sRGB (and 8 bit depth)
  • Method Details

    • values

      public static ImageLoaderDocuImage.Hacks[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ImageLoaderDocuImage.Hacks valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null