VCEANCB_saveDIBToFile

ImperX VCEANCB Functions

VCEANCB_SaveDIBToFile

The VCEANCB_SaveDIBToFile function saves Device Independent Bitmap (DIB) to Bitmap (BMP) file.

VCEANCB_Error VCEANCB_SaveDIBToFile (
  HGLOBAL hDIB, // Handle to DIB
  char* filename // Filename to save the file
);

Parameter:

hDIB
[in] Handle to DIB.
filename
[in] Path to file to save image.

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 hDIB handle or filename is bad (Possibly NULL).
VCEANCB_Err_noMemory Not enough memory.
VCEANCB_Err_UnknownError Unknown (possibly system) error. To get extended error information, call VCEANCB_SystemLastError.

Remarks:

See also:

VCEANCB_SnapFrame, VCEANCB_GetDIB, VCEANCB_ReleaseDIB, VCEANCB_DrawDIB