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.

Afficher le fichier Open project: cureos/csj2k Class Usage Examples

Méthodes publiques

Свойство Type Description
count int
data byte[]
offset int
signature int
type int

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode Description
GetTagInt ( string tag ) : int
ICCTag ( ) : System

Method Details

ICCTag() protected méthode

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 ///
Résultat System

ToString() public méthode

public ToString ( ) : System.String
Résultat System.String

createInstance() public static méthode

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 ///
Résultat ICCTag

signatureString() public static méthode

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

typeString() public static méthode

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

Property Details

count public_oe property

size of the tag data in the array
public int count
Résultat int

data public_oe property

Tag data
public byte[] data
Résultat byte[]

offset public_oe property

offset to tag data in the array
public int offset
Résultat int

signature public_oe property

Tag id
public int signature
Résultat int

type public_oe property

Tag type
public int type
Résultat int