public bool HasCacheDialog(
TargetFormatDlg Dialog
)
public:
bool HasCacheDialog(
TargetFormatDlg Dialog
)
Dialog
Value that specifies which dialog to display. Must be one of the TargetFormatDlg constants.
System.Boolean
Queries whether the specified property dialog for the caching filter is available. Use the 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 GetCacheObject method to retrieve the caching filter object. Use the ShowCacheDialog method to display a specific property dialog for the caching filter.
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
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.