Top Fields Constructors Methods
org.eclipse.swt.internal.image

pack-priv Class PngIhdrChunk

extends PngChunk
Class Inheritance
Imports
org.eclipse.swt.*, org.eclipse.swt.graphics.*

Field Summary

Modifier and TypeField and Description
pack-priv static final int
pack-priv byte
pack-priv static final byte
pack-priv static final byte
pack-priv static final int
pack-priv static final byte
pack-priv static final byte
pack-priv static final byte
pack-priv byte
pack-priv static final int
pack-priv byte
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv byte
pack-priv int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv byte
pack-priv static final byte[]
pack-priv static final byte[]
pack-priv int
pack-priv static final int
Inherited from org.eclipse.swt.internal.image.PngChunk:
CHUNK_IDATCHUNK_IENDCHUNK_IHDRCHUNK_PLTECHUNK_tRNSCHUNK_UNKNOWNCRC_TABLEDATA_OFFSETlengthLENGTH_FIELD_LENGTHLENGTH_OFFSETMIN_LENGTHreferenceTYPE_FIELD_LENGTHTYPE_IDATTYPE_IENDTYPE_IHDRTYPE_OFFSETTYPE_PLTETYPE_tRNS

Constructor Summary

AccessConstructor and Description
pack-priv
PngIhdrChunk(int width, int height, byte bitDepth, byte colorType, byte compressionMethod, byte filterMethod, byte interlaceMethod)

pack-priv
PngIhdrChunk(byte[] reference)

Construct a PNGChunk using the reference bytes given.

Method Summary

Modifier and TypeMethod and Description
pack-priv void
contributeToString(StringBuilder buffer)

Overrides org.eclipse.swt.internal.image.PngChunk.contributeToString.

Provided so that subclasses can override and add data to the toString() call.
pack-priv PaletteData
pack-priv byte
getBitDepth()

Get the image's bit depth.

pack-priv int
getBitsPerPixel()

Answer the pixel size in bits based on the color type and bit depth.

pack-priv boolean
pack-priv int
pack-priv byte
getColorType()

Get the image's color type.

pack-priv String
pack-priv byte
getCompressionMethod()

Get the image's compression method.

pack-priv int
pack-priv byte
getFilterMethod()

Get the image's filter method.

pack-priv String
pack-priv int
getHeight()

Get the image's height in pixels.

pack-priv byte
getInterlaceMethod()

Get the image's interlace method.

pack-priv String
pack-priv boolean
pack-priv PaletteData
pack-priv int
getSwtBitsPerPixel()

Answer the pixel size in bits based on the color type and bit depth.

pack-priv int
getWidth()

Get the image's width in pixels.

pack-priv void
setBitDepth(byte value)

Set the image's bit depth.

pack-priv void
setColorType(byte value)

Set the image's color type.

pack-priv void
setCompressionMethod(byte value)

Set the image's compression method.

pack-priv void
setFilterMethod(byte value)

Set the image's filter method.

pack-priv void
setHeight(int value)

Set the image's height in pixels.

pack-priv void
setInterlaceMethod(byte value)

Set the image's interlace method.

pack-priv void
setWidth(int value)

Set the image's width in pixels.

pack-priv boolean
pack-priv void
validate(PngFileReadState readState, PngIhdrChunk headerChunk)

Overrides org.eclipse.swt.internal.image.PngChunk.validate.

Answer whether the chunk is a valid IHDR chunk.
Inherited from org.eclipse.swt.internal.image.PngChunk:
checkCRCcomputeCRCgetCRCgetDatagetInt16getInt32getLengthgetReferencegetSizegetTypeBytesisCriticalreadNextFromStreamsetCRCsetDatasetInt16setInt32setLengthsetReferencesetTypetoStringtypeMatchesArray

Field Detail

BIT_DEPTH_OFFSETback to summary
pack-priv static final int BIT_DEPTH_OFFSET
bitDepthback to summary
pack-priv byte bitDepth
COLOR_TYPE_GRAYSCALEback to summary
pack-priv static final byte COLOR_TYPE_GRAYSCALE
COLOR_TYPE_GRAYSCALE_WITH_ALPHAback to summary
pack-priv static final byte COLOR_TYPE_GRAYSCALE_WITH_ALPHA
COLOR_TYPE_OFFSETback to summary
pack-priv static final int COLOR_TYPE_OFFSET
COLOR_TYPE_PALETTEback to summary
pack-priv static final byte COLOR_TYPE_PALETTE
COLOR_TYPE_RGBback to summary
pack-priv static final byte COLOR_TYPE_RGB
COLOR_TYPE_RGB_WITH_ALPHAback to summary
pack-priv static final byte COLOR_TYPE_RGB_WITH_ALPHA
colorTypeback to summary
pack-priv byte colorType
COMPRESSION_METHOD_OFFSETback to summary
pack-priv static final int COMPRESSION_METHOD_OFFSET
compressionMethodback to summary
pack-priv byte compressionMethod
FILTER_AVERAGEback to summary
pack-priv static final int FILTER_AVERAGE
FILTER_METHOD_OFFSETback to summary
pack-priv static final int FILTER_METHOD_OFFSET
FILTER_NONEback to summary
pack-priv static final int FILTER_NONE
FILTER_PAETHback to summary
pack-priv static final int FILTER_PAETH
FILTER_SUBback to summary
pack-priv static final int FILTER_SUB
FILTER_UPback to summary
pack-priv static final int FILTER_UP
filterMethodback to summary
pack-priv byte filterMethod
heightback to summary
pack-priv int height
HEIGHT_DATA_OFFSETback to summary
pack-priv static final int HEIGHT_DATA_OFFSET
IHDR_DATA_LENGTHback to summary
pack-priv static final int IHDR_DATA_LENGTH
INTERLACE_METHOD_ADAM7back to summary
pack-priv static final int INTERLACE_METHOD_ADAM7
INTERLACE_METHOD_NONEback to summary
pack-priv static final int INTERLACE_METHOD_NONE
INTERLACE_METHOD_OFFSETback to summary
pack-priv static final int INTERLACE_METHOD_OFFSET
interlaceMethodback to summary
pack-priv byte interlaceMethod
ValidBitDepthsback to summary
pack-priv static final byte[] ValidBitDepths
ValidColorTypesback to summary
pack-priv static final byte[] ValidColorTypes
widthback to summary
pack-priv int width
WIDTH_DATA_OFFSETback to summary
pack-priv static final int WIDTH_DATA_OFFSET

Constructor Detail

PngIhdrChunkback to summary
pack-priv PngIhdrChunk(int width, int height, byte bitDepth, byte colorType, byte compressionMethod, byte filterMethod, byte interlaceMethod)
PngIhdrChunkback to summary
pack-priv PngIhdrChunk(byte[] reference)

Construct a PNGChunk using the reference bytes given.

Method Detail

contributeToStringback to summary
pack-priv void contributeToString(StringBuilder buffer)

Overrides org.eclipse.swt.internal.image.PngChunk.contributeToString.

Doc from org.eclipse.swt.internal.image.PngChunk.contributeToString.

Provided so that subclasses can override and add data to the toString() call.

Annotations
@Override
createGrayscalePaletteback to summary
pack-priv PaletteData createGrayscalePalette()
getBitDepthback to summary
pack-priv byte getBitDepth()

Get the image's bit depth. This is limited to the values 1, 2, 4, 8, or 16.

getBitsPerPixelback to summary
pack-priv int getBitsPerPixel()

Answer the pixel size in bits based on the color type and bit depth.

getCanHavePaletteback to summary
pack-priv boolean getCanHavePalette()
getChunkTypeback to summary
pack-priv int getChunkType()

Overrides org.eclipse.swt.internal.image.PngChunk.getChunkType.

Annotations
@Override
getColorTypeback to summary
pack-priv byte getColorType()

Get the image's color type. This is limited to the values: 0 - Grayscale image. 2 - RGB triple. 3 - Palette. 4 - Grayscale with Alpha channel. 6 - RGB with Alpha channel.

getColorTypeStringback to summary
pack-priv String getColorTypeString()
getCompressionMethodback to summary
pack-priv byte getCompressionMethod()

Get the image's compression method. This value must be 0.

getFilterByteOffsetback to summary
pack-priv int getFilterByteOffset()
getFilterMethodback to summary
pack-priv byte getFilterMethod()

Get the image's filter method. This value must be 0.

getFilterMethodStringback to summary
pack-priv String getFilterMethodString()
getHeightback to summary
pack-priv int getHeight()

Get the image's height in pixels.

getInterlaceMethodback to summary
pack-priv byte getInterlaceMethod()

Get the image's interlace method. This value is limited to: 0 - No interlacing used. 1 - Adam7 interlacing used.

getInterlaceMethodStringback to summary
pack-priv String getInterlaceMethodString()
getMustHavePaletteback to summary
pack-priv boolean getMustHavePalette()
getPaletteDataback to summary
pack-priv PaletteData getPaletteData()
getSwtBitsPerPixelback to summary
pack-priv int getSwtBitsPerPixel()

Answer the pixel size in bits based on the color type and bit depth.

getWidthback to summary
pack-priv int getWidth()

Get the image's width in pixels.

setBitDepthback to summary
pack-priv void setBitDepth(byte value)

Set the image's bit depth. This is limited to the values 1, 2, 4, 8, or 16.

setColorTypeback to summary
pack-priv void setColorType(byte value)

Set the image's color type. This is limited to the values: 0 - Grayscale image. 2 - RGB triple. 3 - Palette. 4 - Grayscale with Alpha channel. 6 - RGB with Alpha channel.

setCompressionMethodback to summary
pack-priv void setCompressionMethod(byte value)

Set the image's compression method. This value must be 0.

setFilterMethodback to summary
pack-priv void setFilterMethod(byte value)

Set the image's filter method. This value must be 0.

setHeightback to summary
pack-priv void setHeight(int value)

Set the image's height in pixels.

setInterlaceMethodback to summary
pack-priv void setInterlaceMethod(byte value)

Set the image's interlace method. This value is limited to: 0 - No interlacing used. 1 - Adam7 interlacing used.

setWidthback to summary
pack-priv void setWidth(int value)

Set the image's width in pixels.

usesDirectColorback to summary
pack-priv boolean usesDirectColor()
validateback to summary
pack-priv void validate(PngFileReadState readState, PngIhdrChunk headerChunk)

Overrides org.eclipse.swt.internal.image.PngChunk.validate.

Answer whether the chunk is a valid IHDR chunk.

Annotations
@Override