public enum FillOrder extends Enum<FillOrder> implements CodedEnum
| Enum Constant and Description |
|---|
NORMAL
Pixels are arranged within a byte such that pixels with lower column
values are stored in the higher-order bits of the byte.
|
REVERSED
Pixels are arranged within a byte such that pixels with lower column
values are stored in the lower-order bits of the byte.
|
| Modifier and Type | Method and Description |
|---|---|
static FillOrder |
get(int code)
Retrieves a fill order by reverse lookup of its "code".
|
int |
getCode()
Retrieves the integer "code" for this enumeration.
|
String |
getName()
Retrieves the given name of the fill order.
|
static FillOrder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FillOrder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FillOrder NORMAL
1-bit uncompressed data example: Pixel 0 of a row is stored in the high-order bit of byte 0, pixel 1 is stored in the next-highest bit, ..., pixel 7 is stored in the low-order bit of byte 0, pixel 8 is stored in the high-order bit of byte 1, and so on.
CCITT 1-bit compressed data example: The high-order bit of the first compression code is stored in the high-order bit of byte 0, the next-highest bit of the first compression code is stored in the next-highest bit of byte 0, and so on.
public static final FillOrder REVERSED
We recommend that FillOrder=2 be used only in special-purpose applications. It is easy and inexpensive for writers to reverse bit order by using a 256-byte lookup table. FillOrder = 2 should be used only when BitsPerSample = 1 and the data is either uncompressed or compressed using CCITT 1D or 2D compression, to avoid potentially ambigous situations.
Support for FillOrder=2 is not required in a Baseline TIFF compliant reader.
public static FillOrder[] values()
for (FillOrder c : FillOrder.values()) System.out.println(c);
public static FillOrder 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 FillOrder get(int code)
code - The code to look up.FillOrder instance for the code or null
if it does not exist.public int getCode()
CodedEnumpublic String getName()
Copyright © 2011–2026 SCIFIO. All rights reserved.