Skip to content

BmpFile Class ​

Definition ​

A Windows BMP image retaining its headers, colour table and stored pixel rows.

c#
public sealed class BmpFile : ImageFile

View source

Constructors ​

NameDescription
BmpFile(ImageData, Boolean)Creates a BMP file from opaque RGB colours or four/eight-bit indexed pixels.

Properties ​

NameDescription
BitsPerPixelGets the stored pixel bit depth.
FormatGets the BMP format.
GapGets the retained bytes between the colour table and pixel data.
HeaderGets the file header.
ImageGets a shared convenience view derived from the file's concrete components.
InformationHeaderGets the BITMAPINFOHEADER.
IsTopDownGets whether rows are stored top-down.
PaletteGets the stored colour table, or null for images without a colour table.
PixelDataGets the stored packed pixel rows, including padding.
TrailingDataGets the retained bytes following the pixel rows, including any bytes beyond the declared file size.