VCEANCB_ConvertPixles2DIB
The VCEANCB_ConvertPixles2DIB function generates Device Independent Bitmap (DIB) from raw bytes recieved from FrameGrabber.
VCEANCB_Error VCEANCB_ConvertPixles2DIB ( HANDLE hVCEANCB, // Handle to card BYTE* lpBuffer, // Handle to card DWORD dwBufferSize, // Handle to card HGLOBAL* phDIB // Pointer to DIB );
Parameter:
- hVCEANCB
- [in] Handle to FrameLink card.
- lpBuffer
- [in] Pointer to Raw bytes.
- dwBufferSize
- [in] Size of data.
- phDIB
- [out] Pointer to DIB handle.
Return values:
If function succeeds, the return value is VCEANCB_Err_Success.
If function fails, the return value can be one of the following values.
VCEANCB_Err_badArgument | hVCEANCB handle or phDIB pointer is bad (possibly NULL). |
VCEANCB_Err_notSupported | Unsupported camera operation mode. |
VCEANCB_Err_noMemory | Not enough memory. |
Remarks:
VCEANCB_GetDIB function generates Device Independed Bitmap explained in Device-Independent Bitmaps section of Windows® GDI. To free memory used by DIB call VCEANCB_ReleaseDIB.
See also:
VCEANCB_SnapFrame, VCEANCB_ReleaseDIB, VCEANCB_DrawDIB, VCEANCB_SaveDIBToFile, VCEANCB_LockBuffer