public class PngChunkOFFS extends PngChunkSingle
see http://www.libpng.org/pub/png/spec/register/pngext-1.3.0-pdg.html#C.oFFs
PngChunk.ChunkOrderingConstraint| Constructor and Description |
|---|
PngChunkOFFS(ImageInfo info) |
| Modifier and Type | Method and Description |
|---|---|
PngChunk |
cloneForWrite(ImageInfo imgInfo)
Makes a copy of the chunk.
|
ChunkRaw |
createRawChunk()
Creates the physical chunk.
|
PngChunk.ChunkOrderingConstraint |
getOrderingConstraint()
|
long |
getPosX() |
long |
getPosY() |
int |
getUnits()
0: pixel, 1:micrometer
|
void |
parseFromRaw(ChunkRaw chunk)
Parses raw chunk and fill inside data.
|
void |
setPosX(long posX) |
void |
setPosY(long posY) |
void |
setUnits(int units)
0: pixel, 1:micrometer
|
allowsMultiple, equals, hashCodecreateEmptyChunk, getChunkGroup, getLen, getOffset, getRaw, hasPriority, setPriority, toStringpublic static final String ID
public PngChunkOFFS(ImageInfo info)
public PngChunk.ChunkOrderingConstraint getOrderingConstraint()
PngChunkgetOrderingConstraint in class PngChunkpublic ChunkRaw createRawChunk()
PngChunkcreateRawChunk in class PngChunkpublic void parseFromRaw(ChunkRaw chunk)
PngChunkparseFromRaw in class PngChunkpublic PngChunk cloneForWrite(ImageInfo imgInfo)
PngChunkThis is used when copying chunks from a reader to a writer
This is usually a (shallow) copy, and after the cloning this.equals(other) should return true
cloneForWrite in class PngChunkpublic int getUnits()
public void setUnits(int units)
public long getPosX()
public void setPosX(long posX)
public long getPosY()
public void setPosY(long posY)
Copyright © 2013. All rights reserved.