Playing pictures
The player can open a single picture, e.g.:
VideoGrabber.PlayerFileName = "mypicture.jpg"
VideoGrabber.OpenPlayer ()
However, it may be necessary to display a picture at a given frame rate, e.g. to perform graphic or text overlays that may change while the picture is displayed.
In this case, proceed as follows instead:
- Set VideoSource = vs_JPEGsOrBitmaps.
- Create an OnVideoFromBitmapsNextFrameNeeded event handler and, from this event, pass the file name of the .JPG to the ImageFilePath parameter of SendImageToVideoFromBitmaps.
- Set FrameRate to the frame rate needed.
- Invoke StartPreview.