java.lang.Object
org.eclipse.swt.internal.image.TIFFDirectory
- final class TIFFDirectory
- extends java.lang.Object
|
Method Summary |
(package private) int |
decodePackBits(byte[] src,
byte[] dest,
int offsetDest)
|
(package private) void |
decodePixels(org.eclipse.swt.graphics.ImageData image)
|
(package private) int[] |
formatColorMap(org.eclipse.swt.graphics.RGB[] rgbs)
|
(package private) int |
formatStrips(int rowByteSize,
int nbrRows,
byte[] data,
int maxStripByteSize,
int offsetPostIFD,
int extraBytes,
int[][] strips)
|
(package private) org.eclipse.swt.graphics.PaletteData |
getColorMap()
|
(package private) int |
getEntryValue(int type,
byte[] buffer,
int index)
|
(package private) void |
getEntryValue(int type,
byte[] buffer,
int index,
int[] values)
|
(package private) org.eclipse.swt.graphics.PaletteData |
getGrayPalette()
|
(package private) org.eclipse.swt.graphics.PaletteData |
getRGBPalette(int bitsR,
int bitsG,
int bitsB)
|
(package private) void |
parseEntries(byte[] buffer)
|
org.eclipse.swt.graphics.ImageData |
read()
|
(package private) int |
toInt(byte[] buffer,
int i,
int type)
|
(package private) void |
write(int photometricInterpretation)
|
(package private) void |
writeEntry(short tag,
int type,
int count,
int value)
|
(package private) void |
writeHeader()
|
(package private) void |
writeToStream(LEDataOutputStream byteStream)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
file
TIFFRandomFileAccess file
isLittleEndian
boolean isLittleEndian
loader
org.eclipse.swt.graphics.ImageLoader loader
depth
int depth
imageWidth
int imageWidth
imageLength
int imageLength
bitsPerSample
int[] bitsPerSample
compression
int compression
photometricInterpretation
int photometricInterpretation
stripOffsets
int[] stripOffsets
samplesPerPixel
int samplesPerPixel
rowsPerStrip
int rowsPerStrip
stripByteCounts
int[] stripByteCounts
t4Options
int t4Options
colorMapOffset
int colorMapOffset
image
org.eclipse.swt.graphics.ImageData image
out
LEDataOutputStream out
NO_VALUE
static final int NO_VALUE
- See Also:
- Constant Field Values
TAG_ImageWidth
static final short TAG_ImageWidth
- See Also:
- Constant Field Values
TAG_ImageLength
static final short TAG_ImageLength
- See Also:
- Constant Field Values
TAG_BitsPerSample
static final short TAG_BitsPerSample
- See Also:
- Constant Field Values
TAG_Compression
static final short TAG_Compression
- See Also:
- Constant Field Values
TAG_PhotometricInterpretation
static final short TAG_PhotometricInterpretation
- See Also:
- Constant Field Values
TAG_StripOffsets
static final short TAG_StripOffsets
- See Also:
- Constant Field Values
TAG_SamplesPerPixel
static final short TAG_SamplesPerPixel
- See Also:
- Constant Field Values
TAG_RowsPerStrip
static final short TAG_RowsPerStrip
- See Also:
- Constant Field Values
TAG_StripByteCounts
static final short TAG_StripByteCounts
- See Also:
- Constant Field Values
TAG_XResolution
static final short TAG_XResolution
- See Also:
- Constant Field Values
TAG_YResolution
static final short TAG_YResolution
- See Also:
- Constant Field Values
TAG_T4Options
static final short TAG_T4Options
- See Also:
- Constant Field Values
TAG_ResolutionUnit
static final short TAG_ResolutionUnit
- See Also:
- Constant Field Values
TAG_ColorMap
static final short TAG_ColorMap
- See Also:
- Constant Field Values
TYPE_BYTE
static final int TYPE_BYTE
- See Also:
- Constant Field Values
TYPE_ASCII
static final int TYPE_ASCII
- See Also:
- Constant Field Values
TYPE_SHORT
static final int TYPE_SHORT
- See Also:
- Constant Field Values
TYPE_LONG
static final int TYPE_LONG
- See Also:
- Constant Field Values
TYPE_RATIONAL
static final int TYPE_RATIONAL
- See Also:
- Constant Field Values
COMPRESSION_NONE
static final int COMPRESSION_NONE
- See Also:
- Constant Field Values
COMPRESSION_CCITT_3_1
static final int COMPRESSION_CCITT_3_1
- See Also:
- Constant Field Values
COMPRESSION_PACKBITS
static final int COMPRESSION_PACKBITS
- See Also:
- Constant Field Values
IFD_ENTRY_SIZE
static final int IFD_ENTRY_SIZE
- See Also:
- Constant Field Values
TIFFDirectory
public TIFFDirectory(TIFFRandomFileAccess file,
boolean isLittleEndian,
org.eclipse.swt.graphics.ImageLoader loader)
TIFFDirectory
public TIFFDirectory(org.eclipse.swt.graphics.ImageData image)
decodePackBits
int decodePackBits(byte[] src,
byte[] dest,
int offsetDest)
getEntryValue
int getEntryValue(int type,
byte[] buffer,
int index)
getEntryValue
void getEntryValue(int type,
byte[] buffer,
int index,
int[] values)
throws java.io.IOException
decodePixels
void decodePixels(org.eclipse.swt.graphics.ImageData image)
throws java.io.IOException
getColorMap
org.eclipse.swt.graphics.PaletteData getColorMap()
throws java.io.IOException
getGrayPalette
org.eclipse.swt.graphics.PaletteData getGrayPalette()
getRGBPalette
org.eclipse.swt.graphics.PaletteData getRGBPalette(int bitsR,
int bitsG,
int bitsB)
formatStrips
int formatStrips(int rowByteSize,
int nbrRows,
byte[] data,
int maxStripByteSize,
int offsetPostIFD,
int extraBytes,
int[][] strips)
formatColorMap
int[] formatColorMap(org.eclipse.swt.graphics.RGB[] rgbs)
parseEntries
void parseEntries(byte[] buffer)
throws java.io.IOException
read
public org.eclipse.swt.graphics.ImageData read()
throws java.io.IOException
toInt
int toInt(byte[] buffer,
int i,
int type)
write
void write(int photometricInterpretation)
throws java.io.IOException
writeEntry
void writeEntry(short tag,
int type,
int count,
int value)
throws java.io.IOException
writeHeader
void writeHeader()
throws java.io.IOException
writeToStream
void writeToStream(LEDataOutputStream byteStream)
throws java.io.IOException