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

public Class PngChunkCHRM

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

cHRM chunk.

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

Field Summary

Modifier and TypeField and Description
private double
private double
private double
private double
public static final String
private double
private double
private double
private double

Constructor Summary

AccessConstructor and Description
public
PngChunkCHRM(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[]
public PngChunk.ChunkOrderingConstraint
public void
parseFromRaw(final ChunkRaw c)

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

Parses raw chunk and fill inside data.
public void
setChromaticities(final double whitex, final double whitey, final double redx, final double redy, final double greenx, final double greeny, final double bluex, final double bluey)

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

Field Detail

bluexback to summary
private double bluex
blueyback to summary
private double bluey
greenxback to summary
private double greenx
greenyback to summary
private double greeny
IDback to summary
public static final String ID
redxback to summary
private double redx
redyback to summary
private double redy
whitexback to summary
private double whitex
whiteyback to summary
private double whitey

Constructor Detail

PngChunkCHRMback to summary
public PngChunkCHRM(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
getChromaticitiesback to summary
public double[] getChromaticities()
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
parseFromRawback to summary
public void parseFromRaw(final ChunkRaw c)

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
setChromaticitiesback to summary
public void setChromaticities(final double whitex, final double whitey, final double redx, final double redy, final double greenx, final double greeny, final double bluex, final double bluey)