Package digilib.image
Enum ImageLoaderDocuImage.Hacks
- All Implemented Interfaces:
Serializable
,Comparable<ImageLoaderDocuImage.Hacks>
,java.lang.constant.Constable
- Enclosing class:
ImageLoaderDocuImage
hacks for specific platform bugs
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionconvert images with 16 bit depth to 8 bit depthconvert images with 16 bit depth to sRGB (and 8 bit depth)set destination type for scale operationtable for LookupOp for inversion needs four channels including alphaJPEG writer can't deal with RGBAdestination image type for LookupOp(mapBgrByteTable) needs to be (A)BGRload ICC profile from PNG metadata manuallyadd ICC profile to PNG metadata manuallytable for RescaleOp for enhance needs four channels -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageLoaderDocuImage.Hacks
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 Details
-
needsInvertRgba
table for LookupOp for inversion needs four channels including alpha -
needsRescaleRgba
table for RescaleOp for enhance needs four channels -
needsMapBgr
destination image type for LookupOp(mapBgrByteTable) needs to be (A)BGR -
forceDestForScaleCustom
set destination type for scale operation -
needsJpegWriteRgb
JPEG writer can't deal with RGBA -
needsPngWriteProfile
add ICC profile to PNG metadata manually -
needsPngLoadProfile
load ICC profile from PNG metadata manually -
force16BitTo8
convert images with 16 bit depth to 8 bit depth -
force16BitToSrgb8
convert images with 16 bit depth to sRGB (and 8 bit depth)
-
-
Method Details
-
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
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
-