FPCM_GET_FRAME_BITMAP
Syntax
FPCM_GET_FRAME_BITMAP
typedef struct SFPCGetFrameBitmap
{
// [out] Handle to a bitmap with the current frame image
HBITMAP hBitmap;
} SFPCGetFrameBitmap;
Description
The FPCM_GET_FRAME_BITMAP
message captures the current frame of the Flash movie and returns it as a Windows bitmap (HBITMAP
).
The caller is responsible for managing the returned bitmap handle and freeing it with DeleteObject
when it is no longer needed.
Example
HWND hwndFlashPlayerControl = FPC_CreateWindow(...);
// Capture current frame as bitmap
SFPCGetFrameBitmap FPCGetFrameBitmap = { 0 };
::SendMessage(hwndFlashPlayerControl, FPCM_GET_FRAME_BITMAP, 0, (LPARAM)&FPCGetFrameBitmap);
HBITMAP hBitmap = FPCGetFrameBitmap.hBitmap;
if (hBitmap != NULL)
{
// Use hBitmap (save or process)
...
// Free the bitmap when done
DeleteObject(hBitmap);
}