Skip to content

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:

  1. Set VideoSource = vs_JPEGsOrBitmaps.
  2. Create an OnVideoFromBitmapsNextFrameNeeded event handler and, from this event, pass the file name of the .JPG to the ImageFilePath parameter of SendImageToVideoFromBitmaps.
  3. Set FrameRate to the frame rate needed.
  4. Invoke StartPreview.