C# Класс Emotion.Standard.Image.BMP.BmpFileHeader

Stores general information about the Bitmap file.
The first two bytes of the Bitmap file format (thus the Bitmap header) are stored in big-endian order. All of the other integer values are stored in little-endian format (i.e. least-significant byte first).
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
BitsPerPixel short
ClrImportant int
ClrUsed int
Compression int
FileSize int
HeaderSize int
Height int
ImageSize int
Offset int
Planes short
Reserved int
Type short
Width int
XPelsPerMeter int
YPelsPerMeter int

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

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

The number of bits per pixel, which is the color depth of the image. Typical values are 1, 4, 8, 16, 24 and 32.
public short BitsPerPixel
Результат short

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

The number of important colors used, or 0 when every color is important; generally ignored.
public int ClrImportant
Результат int

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

The number of colors in the color palette, or 0 to default to 2^n.
public int ClrUsed
Результат int

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

The compression of the image - only RGB is supported.
public int Compression
Результат int

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

The size of the bitmap file in bytes.
public int FileSize
Результат int

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

The size of the BMP header, in bytes.
public int HeaderSize
Результат int

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

The bitmap height in pixels (signed integer).
public int Height
Результат int

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

The image size. This is the size of the raw bitmap data (see below), and should not be confused with the file size.
public int ImageSize
Результат int

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

The offset, i.e. starting address, of the byte where the bitmap data can be found.
public int Offset
Результат int

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

The number of color planes being used. Must be set to 1.
public short Planes
Результат short

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

Reserved; actual value depends on the application that creates the image.
public int Reserved
Результат int

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

The magic number used to identify the bitmap file: 0x42 0x4D (Hex code points for B and M)
public short Type
Результат short

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

The bitmap width in pixels (signed integer).
public int Width
Результат int

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

The horizontal resolution of the image. (pixel per meter, signed integer)
public int XPelsPerMeter
Результат int

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

The vertical resolution of the image. (pixel per meter, signed integer)
public int YPelsPerMeter
Результат int