|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectar.com.hjg.pngj.chunks.PngChunk
ar.com.hjg.pngj.chunks.PngChunkSingle
ar.com.hjg.pngj.chunks.PngChunkPHYS
public class PngChunkPHYS
pHYs chunk.
see http://www.w3.org/TR/PNG/#11pHYs
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ar.com.hjg.pngj.chunks.PngChunk |
---|
PngChunk.ChunkOrderingConstraint |
Field Summary | |
---|---|
static java.lang.String |
ID
|
Fields inherited from class ar.com.hjg.pngj.chunks.PngChunk |
---|
crit, id, pub, safe |
Constructor Summary | |
---|---|
PngChunkPHYS(ImageInfo info)
|
Method Summary | |
---|---|
void |
cloneDataFromRead(PngChunk other)
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()
see PngChunk.ChunkOrderingConstraint |
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)
|
Methods inherited from class ar.com.hjg.pngj.chunks.PngChunkSingle |
---|
allowsMultiple, equals, hashCode |
Methods inherited from class ar.com.hjg.pngj.chunks.PngChunk |
---|
cloneChunk, factory, factoryFromId, factoryRegister, getChunkGroup, getLength, getOffset, hasPriority, isKnown, setChunkGroup, setLength, setOffset, setPriority, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ID
Constructor Detail |
---|
public PngChunkPHYS(ImageInfo info)
Method Detail |
---|
public void cloneDataFromRead(PngChunk other)
PngChunk
This is used when copying chunks from a reader to a writer
It should normally be a deep copy, and after the cloning this.equals(other) should return true
cloneDataFromRead
in class PngChunk
public ChunkRaw createRawChunk()
PngChunk
createRawChunk
in class PngChunk
public double getAsDpi()
public double[] getAsDpi2()
public PngChunk.ChunkOrderingConstraint getOrderingConstraint()
PngChunk
PngChunk.ChunkOrderingConstraint
getOrderingConstraint
in class PngChunk
public long getPixelsxUnitX()
public long getPixelsxUnitY()
public int getUnits()
public void parseFromRaw(ChunkRaw chunk)
PngChunk
parseFromRaw
in class PngChunk
public void setAsDpi(double dpi)
public void setAsDpi2(double dpix, double dpiy)
public void setPixelsxUnitX(long pixelsxUnitX)
public void setPixelsxUnitY(long pixelsxUnitY)
public void setUnits(int units)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |