C# Класс ScreenToGif.Webcam.DirectX.Filter

Represents a DirectShow filter (e.g. video capture device, compression codec).
To save a chosen filer for later recall save the MonikerString property on the filter:
string savedMonikerString = myFilter.MonikerString;
To recall the filter create a new Filter class and pass the string to the constructor:
Filter mySelectedFilter = new Filter(savedMonikerString);
Наследование: IComparable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
MonikerString string
Name string

Открытые методы

Метод Описание
CompareTo ( object obj ) : int

Compares the current instance with another object of the same type.

Filter ( string monikerString ) : System

Create a new filter from its moniker string.

Защищенные методы

Метод Описание
GetAnyMoniker ( ) : UCOMIMoniker

This method gets a UCOMIMoniker object. HACK: The only way to create a UCOMIMoniker from a moniker string is to use UCOMIMoniker.ParseDisplayName(). So I need ANY UCOMIMoniker object so that I can call ParseDisplayName(). Does anyone have a better solution? This assumes there is at least one video compressor filter installed on the system.

GetMonikerString ( UCOMIMoniker moniker ) : string

Retrieve the a moniker's display name (i.e. it's unique string)

GetName ( UCOMIMoniker moniker ) : string

Retrieve the human-readable name of the filter

GetName ( string monikerString ) : string

Get a moniker's human-readable name based on a moniker string.

Приватные методы

Метод Описание
Filter ( UCOMIMoniker moniker ) : System

Create a new filter from its moniker

Описание методов

CompareTo() публичный Метод

Compares the current instance with another object of the same type.
public CompareTo ( object obj ) : int
obj object
Результат int

Filter() публичный Метод

Create a new filter from its moniker string.
public Filter ( string monikerString ) : System
monikerString string
Результат System

GetAnyMoniker() защищенный Метод

This method gets a UCOMIMoniker object. HACK: The only way to create a UCOMIMoniker from a moniker string is to use UCOMIMoniker.ParseDisplayName(). So I need ANY UCOMIMoniker object so that I can call ParseDisplayName(). Does anyone have a better solution? This assumes there is at least one video compressor filter installed on the system.
protected GetAnyMoniker ( ) : UCOMIMoniker
Результат UCOMIMoniker

GetMonikerString() защищенный Метод

Retrieve the a moniker's display name (i.e. it's unique string)
protected GetMonikerString ( UCOMIMoniker moniker ) : string
moniker UCOMIMoniker
Результат string

GetName() защищенный Метод

Retrieve the human-readable name of the filter
protected GetName ( UCOMIMoniker moniker ) : string
moniker UCOMIMoniker
Результат string

GetName() защищенный Метод

Get a moniker's human-readable name based on a moniker string.
protected GetName ( string monikerString ) : string
monikerString string
Результат string

Описание свойств

MonikerString публичное свойство

Unique string referencing this filter. This string can be used to recreate this filter.
public string MonikerString
Результат string

Name публичное свойство

Human-readable name of the filter
public string Name
Результат string