public virtual PlayStillTap StillTap { get; set; } public:virtual property PlayStillTap StillTap {PlayStillTap get();void set ( PlayStillTap );}
A PlayStillTap enumeration value indicating the tap location.
For a list of possible values, refer to the PlayStillTap enumeration values. Still images can be captured using GetStillHDIB, GetStillImage, SaveStillDIB or SaveStillBitmap.
using Leadtools;using Leadtools.Multimedia;using LeadtoolsMultimediaExamples.Fixtures;public bool _result = false;public PlayCtrlForm _form = new PlayCtrlForm();public PlayCtrl _playctrl = null;public string _bmpFile = Path.Combine(LEAD_VARS.MediaDir, "PlayCtrl_SaveStillBitmap.bmp");public void SaveStillBitmapExample(){// input and output file namesstring inFile = Path.Combine(LEAD_VARS.MediaDir, "PlayCtrl_ShortSource.avi");try{// reference the convert control_playctrl = _form.PlayCtrl;// set a timer on the form to make the still bitmap_form.TestTimer.Interval = 5000;_form.TestTimer.Tick += new EventHandler(SaveStillBitmap_Helper);// add an effects processor for playback_playctrl.SelectedVideoProcessors.Add(_playctrl.VideoProcessors.EFXDizzy);// set the still tap location to Processors so that we get// our effect applied to the still image -- you could of course// set the tap to Source to capture the still without the applied effect_playctrl.StillTap = PlayStillTap.Processors;// set the source and target files_playctrl.SourceFile = inFile;// now start the test timer for the still capture_form.TestTimer.Start();}catch (Exception){_result = false;}// we'll loop on the state and pump messages for this example.// but you should not need to if running from a Windows Forms application.while (_playctrl.State == PlayState.Running)Application.DoEvents();}public void SaveStillBitmap_Helper(object sender, EventArgs e){// cancel the timer_form.TestTimer.Stop();// try to simulate an error condition_playctrl.SaveStillBitmap(_bmpFile, StillFormatType.BMP, 0, 0, -1);// check for the capture file and set the resultif (File.Exists(Path.Combine(Directory.GetCurrentDirectory(), _bmpFile)))_result = true;_playctrl.Stop();}static class LEAD_VARS{public const string MediaDir = @"C:\LEADTOOLS23\Media";}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
