ImageEn, unit imageenview

TImageEnView.BeginPostFrames

TImageEnView.BeginPostFrames


Declaration

procedure BeginPostFrames(target: TImageEnView; delay: Integer; interval: Integer);


Description

Sends the current image to a target TImageEnView, after "delay" milliseconds and then after each "interval" milliseconds.
This is useful to display captured frames to another control with delay (See the VideoCapture\DirectShow5 demo).
You can (but don't need to) end frame sending by calling EndPostFrames.

Multiple calls to BeginPostFrames are possible.


Example

// send the current image to ImageEnView2 after 5 seconds, and to ImageEnView3 after 10 seconds, at 50 ms for each frame
ImageEnView1.BeginPostFrames(ImageEnView2, 5000, 50);
ImageEnView1.BeginPostFrames(ImageEnView3, 10000, 50);