public class PngChunk extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static byte[] |
IDAT |
static byte[] |
IEND |
static byte[] |
IHDR |
static byte[] |
PLTE |
static byte[] |
SIGNATURE |
static byte[] |
tRNS |
| 构造器和说明 |
|---|
PngChunk(byte[] length,
byte[] name,
byte[] data) |
| 限定符和类型 | 方法和说明 |
|---|---|
static PngChunk |
createDataChunk(byte[] zLibBytes) |
static PngChunk |
createEndChunk() |
static PngChunk |
createHeaderChunk(int width,
int height,
byte bitDepth,
byte colorType,
byte compression,
byte filter,
byte interlace)
Create An Header Chunk for PNG
|
static PngChunk |
createPaleteChunk(byte[] palBytes) |
static PngChunk |
createTrnsChunk(byte[] trnsBytes) |
byte[] |
getCRCValue() |
byte[] |
getData() |
byte[] |
getLength() |
byte[] |
getName() |
static byte[] |
intToBytes(int value) |
public static final byte[] SIGNATURE
public static final byte[] IHDR
public static final byte[] PLTE
public static final byte[] tRNS
public static final byte[] IDAT
public static final byte[] IEND
public static PngChunk createHeaderChunk(int width, int height, byte bitDepth, byte colorType, byte compression, byte filter, byte interlace)
width - image widthheight - image heightbitDepth - valid values are 1,2,4,8 and 16colorType - valid values are 0,2,3,4 and 6 compression - default is 0filter - default is 0interlace - 0 (no interlace) or 1 (Adam7 interlace). *public static PngChunk createPaleteChunk(byte[] palBytes)
public static PngChunk createTrnsChunk(byte[] trnsBytes)
public static PngChunk createDataChunk(byte[] zLibBytes)
public static PngChunk createEndChunk()
public byte[] getCRCValue()
public static byte[] intToBytes(int value)
public byte[] getLength()
public byte[] getName()
public byte[] getData()
Copyright © 2021. All rights reserved.