|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.builder.png.PngWriter
public class PngWriter
PNG Writer.
A PNG file is simply a signature followed by a number of Chunk
.
PNG specification reference: http://tools.ietf.org/html/rfc2083
Field Summary | |
---|---|
static byte[] |
IDAT
Chunk type for the Image-Data chunk. |
static byte[] |
IHDR
Chunk type for the Image-Header chunk. |
static byte[] |
PLTE
Chunk type for the palette chunk. |
static byte[] |
SIGNATURE
Signature of a PNG file. |
static byte[] |
TRNS
Chunk type for the transparency data chunk. |
Constructor Summary | |
---|---|
PngWriter(java.io.File toFile)
|
Method Summary | |
---|---|
PngWriter |
setChunk(com.android.builder.png.Chunk chunk)
|
PngWriter |
setChunks(java.util.List<com.android.builder.png.Chunk> chunks)
|
PngWriter |
setIhdr(com.android.builder.png.Chunk chunk)
|
void |
write()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte[] SIGNATURE
public static final byte[] IDAT
public static final byte[] IHDR
public static final byte[] PLTE
public static final byte[] TRNS
Constructor Detail |
---|
public PngWriter(@NonNull java.io.File toFile)
Method Detail |
---|
public PngWriter setIhdr(@NonNull com.android.builder.png.Chunk chunk)
public PngWriter setChunk(@NonNull com.android.builder.png.Chunk chunk)
public PngWriter setChunks(@NonNull java.util.List<com.android.builder.png.Chunk> chunks)
public void write() throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |