Playing pictures
The player can open a single picture, e.g.:
VideoGrabber.PlayerFileName = "mypicture.jpg"
VideoGrabber.OpenPlayer ()
However it may be necessary to need a picture to be displayed at a given frame rate, e.g. to perform graphics or text overlays that may change while the picture is displayed.
In this case proceed rather this way:
-
set VideoSource = vs_JPEGsOrBitmaps,
-
create a OnVideoFromBitmapsNextFrameNeeded event and pass the file name of the.JPG to the BMPorJPEGFile parameter of this event,
-
set FrameRate with the frame rate needed
-
then invoke StartPreview