ImageEn, unit imageenview

TImageEnView.OnDShowNewFrame

TImageEnView.OnDShowNewFrame


Declaration

property OnDShowNewFrame: TNotifyEvent;


Description

Occurs whenever a new frame is ready (when using the DirectShow functionality of TImageEnView). This event is active when you are using IO.DShowParams and EnableSampleGrabber is True.


Example

procedure Tfmain.ImageEnView1DShowNewFrame(Sender: TObject);
begin
   // copy current sample to ImageEnView bitmap
   ImageEnView1.IO.DShowParams.GetSample(ImageEnView1.IEBitmap);
   // refresh ImageEnView1
   ImageEnView1.Update();
end;