SendImageToVideoFromBitmaps
function SendImageToVideoFromBitmaps (ImageFilePath: string; BitmapHandle: NativeInt; CanFreeBitmapHandle: Boolean; EndOfData: Boolean): Boolean;
bool __fastcall SendImageToVideoFromBitmaps(System::UnicodeString ImageFilePath, HBITMAP BitmapHandle, bool CanFreeBitmapHandle, bool EndOfData);
public bool SendImageToVideoFromBitmaps(string ImageFilePath, IntPtr BitmapHandle, bool CanFreeBitmapHandle, bool EndOfData);
Public Function SendImageToVideoFromBitmaps(ImageFilePath As String, BitmapHandle As IntPtr, CanFreeBitmapHandle As Boolean, EndOfData As Boolean) As Boolean
BOOL SendImageToVideoFromBitmaps (wchar_t *ImageFilePath, HBITMAP BitmapHandle, BOOL CanFreeBitmapHandle, BOOL EndOfData);
Used to pass the image or bitmap handle to the VideoFromJPEGsOrBitmaps function
Remarks
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,
-
or periodically invoke 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.
Sample code is available in the MainDemo project included in the package, or in the VideoFromBitmapHandles or VideoFromBMPorJPEGfiles demos.