Capture Flash Movie Frame as Bitmap

The component allows you to capture the current frame of a Flash movie as a bitmap.
This makes it possible to save frames as images (e.g., BMP, JPEG) or to use them in other workflows such as generating video sequences.

Use the method CreateFrameBitmap to obtain a bitmap of the current frame.


Delphi Example

procedure TMainForm.ButtonSaveAsBitmapClick(Sender: TObject);  
var  
  Bitmap: TBitmap;  
  Picture: TPicture;  
begin  
  Picture := TPicture.Create;  
  Bitmap := FlashPlayerControl1.CreateFrameBitmap;  
  Picture.Bitmap := Bitmap;  
 
  Picture.SaveToFile('Frame.bmp');  
 
  Bitmap.Free;  
  Picture.Free;  
end;

C++Builder Example

void __fastcall TMainForm::ButtonSaveAsBitmapClick(TObject *Sender)  
{  
  TPicture* Picture = new TPicture;  
  Graphics::TBitmap* Bitmap = FlashPlayerControl1->CreateFrameBitmap();  
  Picture->Bitmap = Bitmap;  
 
  Picture->SaveToFile("Frame.bmp");  
 
  delete Bitmap;  
  delete Picture;  
}