[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.WIC.BitmapLock

Class BitmapLock

Namespace
GrapeCity.Documents.DX.WIC
Assembly
GcDocs.DX.Windows.dll

IWICBitmapLock

[Guid("00000123-a8f2-4877-ba0a-fd2b6645fb94")]
public class BitmapLock : ComObject, IDisposable, IUnknown
Inheritance
object
BitmapLock
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

BitmapLock(IntPtr)

Initializes a new instance of the BitmapLock class.

public BitmapLock(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Properties

Data

Gets a pointer to the data.

public DataRectangle Data { get; }

Property Value

DataRectangle

Size

Gets the size.

public Size2L Size { get; }

Property Value

Size2L

Methods

GetDataPointer()

HRESULT IWICBitmapLock::GetDataPointer([Out] unsigned int* pcbBufferSize,[Out] void** ppbData)

public IntPtr GetDataPointer()

Returns

System.IntPtr

GetDataPointer(out int)

HRESULT IWICBitmapLock::GetDataPointer([Out] unsigned int* pcbBufferSize,[Out] void** ppbData)

public IntPtr GetDataPointer(out int bufferSizeRef)

Parameters

bufferSizeRef int

Returns

System.IntPtr

GetPixelFormat()

HRESULT IWICBitmapLock::GetPixelFormat([Out] GUID* pPixelFormat)

public Guid GetPixelFormat()

Returns

System.Guid

GetSize(out int, out int)

HRESULT IWICBitmapLock::GetSize([Out] unsigned int* puiWidth,[Out] unsigned int* puiHeight)

public void GetSize(out int widthRef, out int heightRef)

Parameters

widthRef int
heightRef int

GetStride()

HRESULT IWICBitmapLock::GetStride([Out] unsigned int* pcbStride)

public int GetStride()

Returns

int

Operators

explicit operator BitmapLock(IntPtr)

Performs an explicit conversion from System.IntPtr to BitmapLock.

public static explicit operator BitmapLock(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

BitmapLock