IMF2DBuffer::GetScanline0AndPitch method (mfobjects.h)
Retrieves a pointer to the buffer memory and the surface stride.
HRESULT GetScanline0AndPitch( BYTE **pbScanline0, LONG *plPitch );
Receives a pointer to the first byte of the top row of pixels in the image.
Receives the stride, in bytes. For more information, see Image Stride.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
||The method succeeded.|
||You must lock the buffer before calling this method.|
Before calling this method, you must lock the buffer by calling IMF2DBuffer::Lock2D. The pointer returned in plPitch is valid only while the buffer remains locked.
|Minimum supported client||Windows Vista [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2008 [desktop apps | UWP apps]|
|Header||mfobjects.h (include Mfidl.h)|