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>
- Enclosing class:
- ImageLoaderDocuImage
protected static enum ImageLoaderDocuImage.Hacks extends Enum<ImageLoaderDocuImage.Hacks>
hacks for specific platform bugs
-
-
Enum Constant Summary
Enum Constants Enum Constant Description force16BitTo8
convert images with 16 bit depth to 8 bit depthforce16BitToSrgb8
convert images with 16 bit depth to sRGB (and 8 bit depth)forceDestForScaleCustom
set destination type for scale operationneedsInvertRgba
table for LookupOp for inversion needs four channels including alphaneedsJpegWriteRgb
JPEG writer can't deal with RGBAneedsMapBgr
destination image type for LookupOp(mapBgrByteTable) needs to be (A)BGRneedsPngLoadProfile
load ICC profile from PNG metadata manuallyneedsPngWriteProfile
add ICC profile to PNG metadata manuallyneedsRescaleRgba
table for RescaleOp for enhance needs four channels
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ImageLoaderDocuImage.Hacks
valueOf(String name)
Returns the enum constant of this type with the specified name.static ImageLoaderDocuImage.Hacks[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static ImageLoaderDocuImage.Hacks[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ImageLoaderDocuImage.Hacks c : ImageLoaderDocuImage.Hacks.values()) System.out.println(c);
- 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 nameNullPointerException
- if the argument is null
-
-