Table of Contents

Class BitmapLock

Namespace
SharpDX.WIC
Assembly
SharpDX.Direct2D1.dll
[Guid("00000123-a8f2-4877-ba0a-fd2b6645fb94")]
public class BitmapLock : ComObject
Inheritance
BitmapLock

Constructors

BitmapLock(nint)

public BitmapLock(nint nativePtr)

Parameters

nativePtr nint

Properties

Data

Gets a pointer to the data.

public DataRectangle Data { get; }

Property Value

DataRectangle

PixelFormat

Gets the pixel format of for the locked area of pixels. This can be used to compute the number of bytes-per-pixel in the locked area.

public Guid PixelFormat { get; }

Property Value

Guid

Size

Gets the size.

public Size2 Size { get; }

Property Value

Size2

Stride

Provides access to the stride value for the memory.

public int Stride { get; }

Property Value

int

Remarks

Note the stride value is specific to the BitmapLock, not the bitmap. For example, two consecutive locks on the same rectangle of a bitmap may return different references and stride values, depending on internal implementation.

Operators

explicit operator BitmapLock(nint)

public static explicit operator BitmapLock(nint nativePtr)

Parameters

nativePtr nint

Returns

BitmapLock