class ImageExtractor.GifFileReader.ImageDescriptorReader
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
height
The image height.
|
private static byte |
IMAGE_DESCRIPTOR_MARKER
The value of the first byte of the the Image Descriptor section.
|
private int |
left
The left position of the image within the given GIF canvas.
|
private int |
packedByte
The packed byte.
|
private int |
top
The top position of the image within the given GIF canvas.
|
private int |
width
The image width.
|
| Constructor and Description |
|---|
ImageDescriptorReader() |
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
getBitsPerPixel()
Retrieves information about the bits per a pixel.
|
(package private) boolean |
hasLocalColorTable()
Retrieves information about the next section.
|
boolean |
testImageDescriptor(java.io.RandomAccessFile raf)
Tests its section marker and then reads its data.
|
private static final byte IMAGE_DESCRIPTOR_MARKER
private int left
private int top
private int width
private int height
private int packedByte
public boolean testImageDescriptor(java.io.RandomAccessFile raf)
throws java.io.IOException
raf - The data represented by the random access filejava.io.IOException - If IO error occurs while reading data and moving the current file pointer.boolean hasLocalColorTable()
int getBitsPerPixel()