IWICBitmapLock interface (wincodec.h)
Exposes methods that support the Lock method.
Inheritance
The IWICBitmapLock interface inherits from the IUnknown interface. IWICBitmapLock also has these types of members:
Methods
The IWICBitmapLock interface has these methods.
IWICBitmapLock::GetDataPointer Gets the pointer to the top left pixel in the locked rectangle. |
IWICBitmapLock::GetPixelFormat 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. |
IWICBitmapLock::GetSize Retrieves the width and height, in pixels, of the locked rectangle. |
IWICBitmapLock::GetStride Provides access to the stride value for the memory. |
Remarks
The bitmap lock is simply an abstraction for a rectangular memory window into the bitmap. For the simplest case, a system memory bitmap, this is simply a pointer to the top left corner of the rectangle and a stride value.
To release the exclusive lock set by Lock method and the associated IWICBitmapLock object, call IUnknown::Release on the IWICBitmapLock object.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP with SP2, Windows Vista [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2008 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | wincodec.h |