Class PngEncoder
java.lang.Object
org.eclipse.swt.internal.image.PngEncoder
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int(package private) static final int(package private) int(package private) ByteArrayOutputStream(package private) PngChunk(package private) int(package private) int(package private) ImageData(package private) static final int(package private) int(package private) int(package private) int(package private) ImageLoader(package private) static final int(package private) static final byte[](package private) static final byte[](package private) static final byte[](package private) static final byte[](package private) static final byte[](package private) static final byte[](package private) int(package private) int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(LEDataOutputStream outputStream) (package private) voidwriteChunk(byte[] tag, byte[] buffer) (package private) voidwriteEnd()(package private) void(package private) void(package private) voidwriteInt(ByteArrayOutputStream baos, int theInt) (package private) void(package private) voidwriteShort(ByteArrayOutputStream baos, int theShort) (package private) void(package private) void
-
Field Details
-
SIGNATURE
static final byte[] SIGNATURE -
TAG_IHDR
static final byte[] TAG_IHDR -
TAG_PLTE
static final byte[] TAG_PLTE -
TAG_TRNS
static final byte[] TAG_TRNS -
TAG_IDAT
static final byte[] TAG_IDAT -
TAG_IEND
static final byte[] TAG_IEND -
NO_COMPRESSION
static final int NO_COMPRESSION- See Also:
-
BEST_SPEED
static final int BEST_SPEED- See Also:
-
BEST_COMPRESSION
static final int BEST_COMPRESSION- See Also:
-
DEFAULT_COMPRESSION
static final int DEFAULT_COMPRESSION- See Also:
-
bytes
ByteArrayOutputStream bytes -
chunk
PngChunk chunk -
loader
ImageLoader loader -
data
ImageData data -
transparencyType
int transparencyType -
width
int width -
height
int height -
bitDepth
int bitDepth -
colorType
int colorType -
compressionMethod
int compressionMethod -
filterMethod
int filterMethod -
interlaceMethod
int interlaceMethod
-
-
Constructor Details
-
PngEncoder
-
-
Method Details
-
writeShort
-
writeInt
-
writeChunk
void writeChunk(byte[] tag, byte[] buffer) -
writeSignature
void writeSignature() -
writeHeader
void writeHeader() -
writePalette
void writePalette() -
writeTransparency
void writeTransparency() -
writeImageData
- Throws:
IOException
-
writeEnd
void writeEnd() -
encode
-