C# Class CSJ2K.Icc.Tags.ICCTag

An ICC profile contains a 128-byte header followed by a variable number of tags contained in a tag table. Each tag is a structured block of ints. The tags share a common format on disk starting with a signature, an offset to the tag data, and a length of the tag data. The tag data itself is found at the given offset in the file and consists of a tag type int, followed by a reserved int, followed by a data block, the structure of which is unique to the tag type.

This class is the abstract super class of all tags. It models that part of the structure which is common among tags of all types.

It also contains the definitions of the various tag types.

Show file Open project: cureos/csj2k Class Usage Examples

Public Properties

Property Type Description
count int
data byte[]
offset int
signature int
type int

Public Methods

Method Description
ToString ( ) : System.String
createInstance ( int signature, byte data, int offset, int count ) : ICCTag

Factory method for creating a tag of a specific type.

signatureString ( int signature ) : System.String

Create a string representation of the signature

typeString ( int type ) : System.String

Create a string representation of the tag type

Protected Methods

Method Description
ICCTag ( int signature, byte data, int offset, int count ) : System

Ued by subclass initialization to store the state common to all tags

Private Methods

Method Description
GetTagInt ( string tag ) : int
ICCTag ( ) : System

Method Details

ICCTag() protected method

Ued by subclass initialization to store the state common to all tags
protected ICCTag ( int signature, byte data, int offset, int count ) : System
signature int tag being created ///
data byte byte array containg embedded tag data ///
offset int to tag data in the array ///
count int size of tag data in bytes ///
return System

ToString() public method

public ToString ( ) : System.String
return System.String

createInstance() public static method

Factory method for creating a tag of a specific type.
public static createInstance ( int signature, byte data, int offset, int count ) : ICCTag
signature int tag to create ///
data byte byte array containg embedded tag data ///
offset int to tag data in the array ///
count int size of tag data in bytes ///
return ICCTag

signatureString() public static method

Create a string representation of the signature
public static signatureString ( int signature ) : System.String
signature int input ///
return System.String

typeString() public static method

Create a string representation of the tag type
public static typeString ( int type ) : System.String
type int input ///
return System.String

Property Details

count public property

size of the tag data in the array
public int count
return int

data public property

Tag data
public byte[] data
return byte[]

offset public property

offset to tag data in the array
public int offset
return int

signature public property

Tag id
public int signature
return int

type public property

Tag type
public int type
return int