C# Class 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).
显示文件 Open project: Cryru/Emotion Class Usage Examples

Public Properties

Property Type Description
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

Property Details

BitsPerPixel public_oe property

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
return short

ClrImportant public_oe property

The number of important colors used, or 0 when every color is important; generally ignored.
public int ClrImportant
return int

ClrUsed public_oe property

The number of colors in the color palette, or 0 to default to 2^n.
public int ClrUsed
return int

Compression public_oe property

The compression of the image - only RGB is supported.
public int Compression
return int

FileSize public_oe property

The size of the bitmap file in bytes.
public int FileSize
return int

HeaderSize public_oe property

The size of the BMP header, in bytes.
public int HeaderSize
return int

Height public_oe property

The bitmap height in pixels (signed integer).
public int Height
return int

ImageSize public_oe property

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
return int

Offset public_oe property

The offset, i.e. starting address, of the byte where the bitmap data can be found.
public int Offset
return int

Planes public_oe property

The number of color planes being used. Must be set to 1.
public short Planes
return short

Reserved public_oe property

Reserved; actual value depends on the application that creates the image.
public int Reserved
return int

Type public_oe property

The magic number used to identify the bitmap file: 0x42 0x4D (Hex code points for B and M)
public short Type
return short

Width public_oe property

The bitmap width in pixels (signed integer).
public int Width
return int

XPelsPerMeter public_oe property

The horizontal resolution of the image. (pixel per meter, signed integer)
public int XPelsPerMeter
return int

YPelsPerMeter public_oe property

The vertical resolution of the image. (pixel per meter, signed integer)
public int YPelsPerMeter
return int