Capture an Image of the Current Flash Movie Frame
F-IN-BOX provides the ability to capture the current frame of a Flash movie as a bitmap.
This allows applications to export frames to images (e.g., BMP, JPEG) or use them in workflows such as generating AVI video sequences.
Using FPCM_GET_FRAME_BITMAP, you can capture snapshots of Flash movies at runtime. This makes it possible to build applications that convert Flash animations into image sequences or videos.
C++ Example
#include <atlimage.h>
...
SFPCGetFrameBitmap FPCGetFrameBitmap = { 0 };
// Request the current frame as a bitmap
::SendMessage(g_hwndFlashPlayerControl, FPCM_GET_FRAME_BITMAP, 0, (LPARAM)&FPCGetFrameBitmap);
HBITMAP hBitmap = FPCGetFrameBitmap.hBitmap;
if (NULL != hBitmap)
{
CImage Image;
Image.Attach(hBitmap);
// Save captured frame to file
Image.Save(_T("Frame.bmp"));
Image.Detach();
DeleteObject(hBitmap);
}