C# Класс ImageProcessor.Imaging.MetaData.ExifBitConverter

The exif bit converter. Converts based on the endianness of the current machine.
Наследование: ImageProcessor.Imaging.Helpers.EndianBitConverter
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ExifBitConverter ( IComputerArchitectureInfo computerArchitectureInfo ) : System

Initializes a new instance of the ExifBitConverter class.

GetBytes ( Rational value ) : byte[]

Converts the given signed rational number to an array of bytes.

GetBytes ( Rational value ) : byte[]

Converts the given unsigned rational number to an array of bytes.

GetBytes ( string value ) : byte[]

Converts the given ascii string to an array of bytes without adding a null terminator.

GetBytes ( string value, bool addnull ) : byte[]

Converts the given ascii string to an array of bytes optionally adding a null terminator.

IsLittleEndian ( ) : bool

Indicates the byte order ("endianness") in which data is converted using this class.

Different computer architectures store data using different byte orders. "Big-endian" means the most significant byte is on the left end of a word. "Little-endian" means the most significant byte is on the right end of a word.

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

Метод Описание
CopyBytesImpl ( long value, int bytes, byte buffer, int index ) : void

Copies the given number of bytes from the least-specific end of the specified value into the specified byte array, beginning at the specified index. This must be implemented in concrete derived classes, but the implementation may assume that the value will fit into the buffer.

FromBytes ( byte value, int startIndex, int bytesToConvert ) : long

Convert the given number of bytes from the given array, from the given start position, into a long, using the bytes as the least significant part of the long. By the time this is called, the arguments have been checked for validity.

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

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

Copies the given number of bytes from the least-specific end of the specified value into the specified byte array, beginning at the specified index. This must be implemented in concrete derived classes, but the implementation may assume that the value will fit into the buffer.
protected CopyBytesImpl ( long value, int bytes, byte buffer, int index ) : void
value long The value to copy bytes for
bytes int The number of significant bytes to copy
buffer byte The byte array to copy the bytes into
index int The first index into the array to copy the bytes into
Результат void

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

Initializes a new instance of the ExifBitConverter class.
public ExifBitConverter ( IComputerArchitectureInfo computerArchitectureInfo ) : System
computerArchitectureInfo IComputerArchitectureInfo /// The computer architecture info. ///
Результат System

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

Convert the given number of bytes from the given array, from the given start position, into a long, using the bytes as the least significant part of the long. By the time this is called, the arguments have been checked for validity.
protected FromBytes ( byte value, int startIndex, int bytesToConvert ) : long
value byte The bytes to convert
startIndex int The index of the first byte to convert
bytesToConvert int The number of bytes to use in the conversion
Результат long

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

Converts the given signed rational number to an array of bytes.
public GetBytes ( Rational value ) : byte[]
value Rational /// The containing the numerator and denominator. ///
Результат byte[]

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

Converts the given unsigned rational number to an array of bytes.
public GetBytes ( Rational value ) : byte[]
value Rational /// The containing the numerator and denominator. ///
Результат byte[]

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

Converts the given ascii string to an array of bytes without adding a null terminator.
public GetBytes ( string value ) : byte[]
value string The string to convert.
Результат byte[]

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

Converts the given ascii string to an array of bytes optionally adding a null terminator.
public GetBytes ( string value, bool addnull ) : byte[]
value string The string to convert
addnull bool Whether to add a null terminator to the end of the string.
Результат byte[]

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

Indicates the byte order ("endianness") in which data is converted using this class.
Different computer architectures store data using different byte orders. "Big-endian" means the most significant byte is on the left end of a word. "Little-endian" means the most significant byte is on the right end of a word.
public IsLittleEndian ( ) : bool
Результат bool