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

public Class PngChunkSRGB

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

sRGB chunk.

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

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
PngChunkSRGB(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 int
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
setIntent(final int intent)

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

Field Detail

IDback to summary
public static final String ID
intentback to summary
private int intent
RENDER_INTENT_Absolute_colorimetricback to summary
public static final int RENDER_INTENT_Absolute_colorimetric
RENDER_INTENT_Perceptualback to summary
public static final int RENDER_INTENT_Perceptual
RENDER_INTENT_Relative_colorimetricback to summary
public static final int RENDER_INTENT_Relative_colorimetric
RENDER_INTENT_Saturationback to summary
public static final int RENDER_INTENT_Saturation

Constructor Detail

PngChunkSRGBback to summary
public PngChunkSRGB(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
getIntentback to summary
public int getIntent()
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
setIntentback to summary
public void setIntent(final int intent)