Top Description Fields Constructors Methods
jogamp.opengl.util.pngj.chunks

public Class PngChunkPHYS

extends PngChunkSingle
Class Inheritance
Imports
jogamp.opengl.util.pngj.ImageInfo, .PngHelperInternal, .PngjException

pHYs chunk.

see http://www.w3.org/TR/PNG/#11pHYs

Field Summary

Modifier and TypeField and Description
public static final String
private long
private long
private int

Constructor Summary

AccessConstructor and Description
public
PngChunkPHYS(final ImageInfo info)

Method Summary

Modifier and TypeMethod and Description
public void
cloneDataFromRead(final PngChunk other)

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.cloneDataFromRead.

Makes a copy of the chunk.
public ChunkRaw
createRawChunk()

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.createRawChunk.

Creates the physical chunk.
public double
getAsDpi()

returns -1 if the physicial unit is unknown, or X-Y are not equal

public double[]
getAsDpi2()

returns -1 if the physicial unit is unknown

public PngChunk.ChunkOrderingConstraint
public long
public long
public int
public void
parseFromRaw(final ChunkRaw chunk)

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.parseFromRaw.

Parses raw chunk and fill inside data.
public void
setAsDpi(final double dpi)

public void
setAsDpi2(final double dpix, final double dpiy)

public void
setPixelsxUnitX(final long pixelsxUnitX)

public void
setPixelsxUnitY(final long pixelsxUnitY)

public void
setUnits(final int units)

Inherited from jogamp.opengl.util.pngj.chunks.PngChunkSingle:
allowsMultipleequalshashCode

Field Detail

IDback to summary
public static final String ID
pixelsxUnitXback to summary
private long pixelsxUnitX
pixelsxUnitYback to summary
private long pixelsxUnitY
unitsback to summary
private int units

Constructor Detail

PngChunkPHYSback to summary
public PngChunkPHYS(final ImageInfo info)

Method Detail

cloneDataFromReadback to summary
public void cloneDataFromRead(final PngChunk other)

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.cloneDataFromRead.

Doc from jogamp.opengl.util.pngj.chunks.PngChunk.cloneDataFromRead.

Makes a copy of the chunk.

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

Annotations
@Override
createRawChunkback to summary
public ChunkRaw createRawChunk()

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.createRawChunk.

Doc from jogamp.opengl.util.pngj.chunks.PngChunk.createRawChunk.

Creates the physical chunk. This is used when writing (serialization). Each particular chunk class implements its own logic.

Returns:ChunkRaw

A newly allocated and filled raw chunk

Annotations
@Override
getAsDpiback to summary
public double getAsDpi()

returns -1 if the physicial unit is unknown, or X-Y are not equal

getAsDpi2back to summary
public double[] getAsDpi2()

returns -1 if the physicial unit is unknown

getOrderingConstraintback to summary
public PngChunk.ChunkOrderingConstraint getOrderingConstraint()

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.getOrderingConstraint.

Doc from jogamp.opengl.util.pngj.chunks.PngChunk.getOrderingConstraint.

see ChunkOrderingConstraint

Annotations
@Override
getPixelsxUnitXback to summary
public long getPixelsxUnitX()
getPixelsxUnitYback to summary
public long getPixelsxUnitY()
getUnitsback to summary
public int getUnits()
parseFromRawback to summary
public void parseFromRaw(final ChunkRaw chunk)

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.parseFromRaw.

Doc from jogamp.opengl.util.pngj.chunks.PngChunk.parseFromRaw.

Parses raw chunk and fill inside data. This is used when reading (deserialization). Each particular chunk class implements its own logic.

Annotations
@Override
setAsDpiback to summary
public void setAsDpi(final double dpi)
setAsDpi2back to summary
public void setAsDpi2(final double dpix, final double dpiy)
setPixelsxUnitXback to summary
public void setPixelsxUnitX(final long pixelsxUnitX)
setPixelsxUnitYback to summary
public void setPixelsxUnitY(final long pixelsxUnitY)
setUnitsback to summary
public void setUnits(final int units)