Class BitmapDataBuffer
Contains metadata about a raw bitmap back-buffer.
Inherited Members
Namespace: Unosquare.FFME.Common
Syntax
public sealed class BitmapDataBuffer
Properties
BitsPerPixel
Gets the bits per pixel.
Declaration
public int BitsPerPixel { get; }
Property Value
Type | Description |
---|---|
Int32 |
BufferLength
Gets the length of the buffer (Stride x Pixel Height).
Declaration
public uint BufferLength { get; }
Property Value
Type | Description |
---|---|
UInt32 |
BytesPerPixel
Gets the bytes per pixel.
Declaration
public int BytesPerPixel { get; }
Property Value
Type | Description |
---|---|
Int32 |
DpiX
Gets the DPI on the X axis.
Declaration
public double DpiX { get; }
Property Value
Type | Description |
---|---|
Double |
DpiY
Gets the DPI on the Y axis.
Declaration
public double DpiY { get; }
Property Value
Type | Description |
---|---|
Double |
Palette
Gets the palette.
Declaration
public BitmapPalette Palette { get; }
Property Value
Type | Description |
---|---|
BitmapPalette |
PixelFormat
Gets the pixel format.
Declaration
public PixelFormat PixelFormat { get; }
Property Value
Type | Description |
---|---|
PixelFormat |
PixelHeight
Gets height of the bitmap.
Declaration
public int PixelHeight { get; }
Property Value
Type | Description |
---|---|
Int32 |
PixelWidth
Gets width of the bitmap.
Declaration
public int PixelWidth { get; }
Property Value
Type | Description |
---|---|
Int32 |
Scan0
Gets a pointer to the raw pixel data.
Declaration
public IntPtr Scan0 { get; }
Property Value
Type | Description |
---|---|
IntPtr |
Stride
Gets the byte width of each row of pixels.
Declaration
public int Stride { get; }
Property Value
Type | Description |
---|---|
Int32 |
UpdateRect
Gets the update rect.
Declaration
public Int32Rect UpdateRect { get; }
Property Value
Type | Description |
---|---|
Int32Rect |
Methods
CreateDrawingBitmap()
Creates a Drawing Bitmap from this data buffer.
Declaration
public Bitmap CreateDrawingBitmap()
Returns
Type | Description |
---|---|
Bitmap | The bitmap. |