[]
IWICBitmapLock
[Guid("00000123-a8f2-4877-ba0a-fd2b6645fb94")]
public class BitmapLock : ComObject, IDisposable, IUnknown
Initializes a new instance of the BitmapLock class.
public BitmapLock(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
Gets a pointer to the data.
public DataRectangle Data { get; }
Gets the size.
public Size2L Size { get; }
HRESULT IWICBitmapLock::GetDataPointer([Out] unsigned int* pcbBufferSize,[Out] void** ppbData)
public IntPtr GetDataPointer()
HRESULT IWICBitmapLock::GetDataPointer([Out] unsigned int* pcbBufferSize,[Out] void** ppbData)
public IntPtr GetDataPointer(out int bufferSizeRef)
bufferSizeRef
intHRESULT IWICBitmapLock::GetPixelFormat([Out] GUID* pPixelFormat)
public Guid GetPixelFormat()
HRESULT IWICBitmapLock::GetSize([Out] unsigned int* puiWidth,[Out] unsigned int* puiHeight)
public void GetSize(out int widthRef, out int heightRef)
widthRef
intheightRef
intHRESULT IWICBitmapLock::GetStride([Out] unsigned int* pcbStride)
public int GetStride()
Performs an explicit conversion from System.IntPtr to BitmapLock.
public static explicit operator BitmapLock(IntPtr nativePointer)
nativePointer
System.IntPtr