C# Class CSJ2K.Color.Boxes.ComponentMappingBox

This class maps the components in the codestream to channels in the image. It models the Component Mapping box in the JP2 header.
Inheritance: CSJ2K.Color.Boxes.JP2Box
Mostrar archivo Open project: cureos/csj2k

Public Methods

Method Description
ComponentMappingBox ( CSJ2K.j2k.io.RandomAccessIO in_Renamed, int boxStart ) : System

Construct a ComponentMappingBox from an input image.

ToString ( ) : System.String

Return a suitable String representation of the class instance.

getCMP ( int channel ) : int
getMTYP ( int channel ) : short

Return the channel type.

getPCOL ( int channel ) : short

Return the palette index for the channel.

Private Methods

Method Description
ComponentMappingBox ( ) : System
getCMP ( byte mapping ) : int
getMTYP ( byte mapping ) : short
getPCOL ( byte mapping ) : short
readBox ( ) : void

Analyze the box content.

Method Details

ComponentMappingBox() public method

Construct a ComponentMappingBox from an input image.
ColorSpaceException ///
public ComponentMappingBox ( CSJ2K.j2k.io.RandomAccessIO in_Renamed, int boxStart ) : System
in_Renamed CSJ2K.j2k.io.RandomAccessIO
boxStart int offset to the start of the box in the image ///
return System

ToString() public method

Return a suitable String representation of the class instance.
public ToString ( ) : System.String
return System.String

getCMP() public method

public getCMP ( int channel ) : int
channel int
return int

getMTYP() public method

Return the channel type.
public getMTYP ( int channel ) : short
channel int
return short

getPCOL() public method

Return the palette index for the channel.
public getPCOL ( int channel ) : short
channel int
return short