C# Класс 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.

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
count int
data byte[]
offset int
signature int
type int

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
ICCTag ( int signature, byte data, int offset, int count ) : System

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

Приватные методы

Метод Описание
GetTagInt ( string tag ) : int
ICCTag ( ) : System

Описание методов

ICCTag() защищенный Метод

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 ///
Результат System

ToString() публичный Метод

public ToString ( ) : System.String
Результат System.String

createInstance() публичный статический Метод

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 ///
Результат ICCTag

signatureString() публичный статический Метод

Create a string representation of the signature
public static signatureString ( int signature ) : System.String
signature int input ///
Результат System.String

typeString() публичный статический Метод

Create a string representation of the tag type
public static typeString ( int type ) : System.String
type int input ///
Результат System.String

Описание свойств

count публичное свойство

size of the tag data in the array
public int count
Результат int

data публичное свойство

Tag data
public byte[] data
Результат byte[]

offset публичное свойство

offset to tag data in the array
public int offset
Результат int

signature публичное свойство

Tag id
public int signature
Результат int

type публичное свойство

Tag type
public int type
Результат int