C# Класс ImageMagick.IptcProfile

Class that can be used to access an Iptc profile.
Наследование: ImageProfile
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetValue ( IptcTag tag ) : IptcValue

Returns the value with the specified tag.

IptcProfile ( ) : System

Initializes a new instance of the IptcProfile class.

IptcProfile ( Stream stream ) : System

Initializes a new instance of the IptcProfile class.

IptcProfile ( byte data ) : System

Initializes a new instance of the IptcProfile class.

IptcProfile ( string fileName ) : System

Initializes a new instance of the IptcProfile class.

RemoveValue ( IptcTag tag ) : bool

Removes the value with the specified tag.

SetEncoding ( Encoding encoding ) : void

Changes the encoding for all the values,

SetValue ( IptcTag tag, Encoding encoding, string value ) : void

Sets the value of the specified tag.

SetValue ( IptcTag tag, string value ) : void

Sets the value of the specified tag.

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

Метод Описание
UpdateData ( ) : void

Updates the data of the profile.

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

Метод Описание
Initialize ( ) : void

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

GetValue() публичный метод

Returns the value with the specified tag.
public GetValue ( IptcTag tag ) : IptcValue
tag IptcTag The tag of the iptc value.
Результат IptcValue

IptcProfile() публичный метод

Initializes a new instance of the IptcProfile class.
public IptcProfile ( ) : System
Результат System

IptcProfile() публичный метод

Initializes a new instance of the IptcProfile class.
public IptcProfile ( Stream stream ) : System
stream Stream The stream to read the iptc profile from.
Результат System

IptcProfile() публичный метод

Initializes a new instance of the IptcProfile class.
public IptcProfile ( byte data ) : System
data byte The byte array to read the iptc profile from.
Результат System

IptcProfile() публичный метод

Initializes a new instance of the IptcProfile class.
public IptcProfile ( string fileName ) : System
fileName string The fully qualified name of the iptc profile file, or the relative /// iptc profile file name.
Результат System

RemoveValue() публичный метод

Removes the value with the specified tag.
public RemoveValue ( IptcTag tag ) : bool
tag IptcTag The tag of the iptc value.
Результат bool

SetEncoding() публичный метод

Changes the encoding for all the values,
public SetEncoding ( Encoding encoding ) : void
encoding System.Text.Encoding The encoding to use when storing the bytes.
Результат void

SetValue() публичный метод

Sets the value of the specified tag.
public SetValue ( IptcTag tag, Encoding encoding, string value ) : void
tag IptcTag The tag of the iptc value.
encoding System.Text.Encoding The encoding to use when storing the bytes.
value string The value.
Результат void

SetValue() публичный метод

Sets the value of the specified tag.
public SetValue ( IptcTag tag, string value ) : void
tag IptcTag The tag of the iptc value.
value string The value.
Результат void

UpdateData() защищенный метод

Updates the data of the profile.
protected UpdateData ( ) : void
Результат void