Skip to content

SendImageToVideoFromBitmaps

method

Delphi
function SendImageToVideoFromBitmaps (ImageFilePath: string; BitmapHandle: NativeInt; CanFreeBitmapHandle: Boolean; EndOfData: Boolean): Boolean;
C++Builder
bool __fastcall SendImageToVideoFromBitmaps(System::UnicodeString ImageFilePath, HBITMAP BitmapHandle, bool CanFreeBitmapHandle, bool EndOfData);
C#
public bool SendImageToVideoFromBitmaps(string ImageFilePath, IntPtr BitmapHandle, bool CanFreeBitmapHandle, bool EndOfData);
VB.NET
Public Function SendImageToVideoFromBitmaps(ImageFilePath As String, BitmapHandle As IntPtr, CanFreeBitmapHandle As Boolean, EndOfData As Boolean) As Boolean
C++/Qt
BOOL SendImageToVideoFromBitmaps (wchar_t *ImageFilePath, HBITMAP BitmapHandle, BOOL CanFreeBitmapHandle, BOOL EndOfData);

Passes the image or bitmap handle to the VideoFromJPEGsOrBitmaps function. When VideoSource = vs_JPEGsOrBitmaps, TVideoGrabber needs the video frames to be passed by SendImageToVideoFromBitmaps or SendImageToVideoFromBitmaps2. It is possible to:

  • either invoke SendImageToVideoFromBitmaps from the OnVideoFromBitmapsNextFrameNeeded event, that occurs periodically to request the next frame,

  • either invoke periodically SendImageToVideoFromBitmaps directly. In this 2nd case, SendImageToVideoFromBitmaps must be called one time just before invoking StartPreview() or StartRecording().

See Video clips built on the fly by passing bitmap handles, BMP or JPEG files for more information.

You will find sample code in the MainDemo project included in the package, or in the VideoFromBitmapHandles or VideoFromBMPorJPEGfiles demos.