public enum Photometric extends Enum<Photometric>
| Enum Constant and Description |
|---|
MONOCHROME1 |
MONOCHROME2 |
PALETTE_COLOR |
RGB |
YBR_FULL |
YBR_FULL_422 |
YBR_ICT |
YBR_PARTIAL_420 |
YBR_PARTIAL_422 |
YBR_RCT |
| Modifier and Type | Method and Description |
|---|---|
Photometric |
compress(String tsuid) |
abstract ColorModel |
createColorModel(int bits,
int dataType,
Attributes ds) |
SampleModel |
createSampleModel(int dataType,
int w,
int h,
int samples,
boolean banded) |
int |
frameLength(int w,
int h,
int samples,
int bitsAllocated) |
static Photometric |
fromString(String s) |
boolean |
isInverse() |
boolean |
isMonochrome() |
boolean |
isSubSampled() |
boolean |
isYBR() |
static Photometric |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Photometric[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Photometric MONOCHROME1
public static final Photometric MONOCHROME2
public static final Photometric PALETTE_COLOR
public static final Photometric RGB
public static final Photometric YBR_FULL
public static final Photometric YBR_FULL_422
public static final Photometric YBR_ICT
public static final Photometric YBR_PARTIAL_420
public static final Photometric YBR_PARTIAL_422
public static final Photometric YBR_RCT
public static Photometric[] values()
for (Photometric c : Photometric.values()) System.out.println(c);
public static Photometric valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static Photometric fromString(String s)
public int frameLength(int w,
int h,
int samples,
int bitsAllocated)
public boolean isMonochrome()
public boolean isYBR()
public Photometric compress(String tsuid)
public boolean isInverse()
public boolean isSubSampled()
public abstract ColorModel createColorModel(int bits, int dataType, Attributes ds)
public SampleModel createSampleModel(int dataType, int w, int h, int samples, boolean banded)
Copyright © 2020. All rights reserved.