public class PngChunkPHYS extends PngChunkSingle
see http://www.w3.org/TR/PNG/#11pHYs
PngChunk.ChunkOrderingConstraint| Constructor and Description |
|---|
PngChunkPHYS(ImageInfo info) |
| Modifier and Type | Method and Description |
|---|---|
PngChunk |
cloneForWrite(ImageInfo imgInfo)
Makes a copy of the chunk.
|
ChunkRaw |
createRawChunk()
Creates the physical chunk.
|
double |
getAsDpi()
returns -1 if the physicial unit is unknown, or X-Y are not equal
|
double[] |
getAsDpi2()
returns -1 if the physicial unit is unknown
|
PngChunk.ChunkOrderingConstraint |
getOrderingConstraint()
|
long |
getPixelsxUnitX() |
long |
getPixelsxUnitY() |
int |
getUnits() |
void |
parseFromRaw(ChunkRaw chunk)
Parses raw chunk and fill inside data.
|
void |
setAsDpi(double dpi) |
void |
setAsDpi2(double dpix,
double dpiy) |
void |
setPixelsxUnitX(long pixelsxUnitX) |
void |
setPixelsxUnitY(long pixelsxUnitY) |
void |
setUnits(int units) |
allowsMultiple, equals, hashCodecreateEmptyChunk, getChunkGroup, getLen, getOffset, getRaw, hasPriority, setPriority, toStringpublic static final String ID
public PngChunkPHYS(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 long getPixelsxUnitX()
public void setPixelsxUnitX(long pixelsxUnitX)
public long getPixelsxUnitY()
public void setPixelsxUnitY(long pixelsxUnitY)
public int getUnits()
public void setUnits(int units)
public double getAsDpi()
public double[] getAsDpi2()
public void setAsDpi(double dpi)
public void setAsDpi2(double dpix,
double dpiy)
Copyright © 2013. All rights reserved.