IC Imaging Control .NET

ICImagingControl.FrameFilterCreate Method

ICImagingControl.FrameFilterCreate Method

Creates a new instance of a FrameFilter from a FrameFilterInfo.
Syntax:
[VB.NET]
Public Function FrameFilterCreate( Info As FrameFilterInfo ) As FrameFilter Public Function FrameFilterCreate( FilterName As String ) As FrameFilter Public Function FrameFilterCreate( FilterName As String, ModuleName As String ) As FrameFilter
[C#]
public FrameFilter FrameFilterCreate( FrameFilterInfo Info ); public FrameFilter FrameFilterCreate( string FilterName ); public FrameFilter FrameFilterCreate( string FilterName, string ModuleName );
Name Description
Info

The FrameFilterInfo object describing the frame filter to be created.

FilterName

Name of the frame filter to be created.

ModuleName

Filter module from which the frame filter is loaded. Can be omitted.

Information:

Introduced in version 3.0

Example:

The following example shows how to create a FrameFilter instance from a FrameFilterInfo object:

[C#]
// Retrieve the first FrameFilterInfo object. FrameFilterInfo info = ICImagingControl1.FrameFilterInfos[0]; // Create the frame filter to which the info object refers. FrameFilter filter = ICImagingControl1.FrameFilterCreate( info ); // Set the frame filter as the device frame filter. ICImagingControl1.DeviceFrameFilters.Add( filter ); // Start live mode. ICImagingControl1.LiveStart();
[VB.NET]
' Retrieve the first FrameFilterInfo object. Dim info As FrameFilterInfo = IcImagingControl1.FrameFilterInfos(0) ' Create the frame filter to which the info object refers. Dim filter As FrameFilter = IcImagingControl1.FrameFilterCreate(info) ' Set the frame filter as the device frame filter. IcImagingControl1.DeviceFrameFilters.Add(filter) ' Start live mode. IcImagingControl1.LiveStart()

The frame filter is set as a device frame filter.

The following code fragment shows how to create the DeBayer Filter from stdfilters.ftf:

[C#]
FrameFilter filter = ICImagingControl1.FrameFilterCreate("DeBayer", "");
[VB.NET]
Dim filter As FrameFilter = IcImagingControl1.FrameFilterCreate("DeBayer", "")
See also: ICImagingControl, ICImagingControl.FrameFilterInfos, FrameFilter, FrameFilterInfo

<< ICImagingControl

Get in touch with us


About The Imaging Source

Established in 1990, The Imaging Source is one of the leading manufacturers of industrial cameras, frame grabbers and video converters for production automation, quality assurance, logistics, medicine, science and security.

Our comprehensive range of cameras with USB 3.1, USB 3.0, USB 2.0, GigE interfaces and other innovative machine vision products are renowned for their high quality and ability to meet the performance requirements of demanding applications.

Automated Imaging Association ISO 9001:2015 certified

Contact us