public void ShowCacheDialog(
TargetFormatDlg Dialog,
IWin32Window hWnd
)
public:
void ShowCacheDialog(
TargetFormatDlg Dialog,
IWin32Window^ hWnd
)
Dialog
Value that specifies which dialog to display. Must be one of the TargetFormatDlg enumeration values.
hWnd
Value that specifies the dialog owner's window handle.
Use the TargetFormat.UseFilterCache property to get a value that indicates whether the toolkit is currently caching filters; or set a value that indicates whether to enable or disable the caching of filters. Use the TargetFormat.GetCacheObject method to retrieve the caching filter object. Use the TargetFormat.HasCacheDialog method to query whether the specified property dialog for the caching filter is available.
using Leadtools;
using Leadtools.Multimedia;
using LeadtoolsMultimediaExamples.Fixtures;
public bool _result = false;
public CaptureCtrlForm _form = new CaptureCtrlForm();
public void HasCacheDialogExample()
{
// reference the capture control
CaptureCtrl capturectrl = _form.CaptureCtrl;
try
{
// reference the MPEG2Transport target format from the collection of the target formats
TargetFormat fmt = capturectrl.TargetFormats.MPEG2Transport;
// set the MPEG2Transport target format to use filter cache
fmt.UseFilterCache = true;
// check to see if the format has a multiplexer dialog for settings
if (fmt.HasCacheDialog(TargetFormatDlg.Mux))
{
// show the dialog
fmt.ShowCacheDialog(TargetFormatDlg.Mux, _form);
// set the result
_result = true;
}
}
catch (Exception)
{
_result = false;
}
}
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