C# Class DirectX.Capture.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 );
Inheritance: IComparable
Afficher le fichier Open project: parhansson/KMotionX Class Usage Examples

Méthodes publiques

Свойство Type Description
MonikerString string
Name string

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
getAnyMoniker ( ) : IMoniker

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.

getAnyMoniker ( ) : UCOMIMoniker
getMonikerString ( IMoniker moniker ) : string

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

getMonikerString ( UCOMIMoniker moniker ) : string
getName ( IMoniker moniker ) : string

Retrieve the human-readable name of the filter

getName ( UCOMIMoniker moniker ) : string
getName ( string monikerString ) : string

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

Private Methods

Méthode Description
Filter ( IMoniker moniker ) : System

Create a new filter from its moniker

Filter ( UCOMIMoniker moniker ) : System

Method Details

CompareTo() public méthode

Compares the current instance with another object of the same type.
public CompareTo ( object obj ) : int
obj object
Résultat int

Filter() public méthode

Create a new filter from its moniker string.
public Filter ( string monikerString ) : System
monikerString string
Résultat System

getAnyMoniker() protected méthode

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 ( ) : IMoniker
Résultat IMoniker

getAnyMoniker() protected méthode

protected getAnyMoniker ( ) : UCOMIMoniker
Résultat UCOMIMoniker

getMonikerString() protected méthode

Retrieve the a moniker's display name (i.e. it's unique string)
protected getMonikerString ( IMoniker moniker ) : string
moniker IMoniker
Résultat string

getMonikerString() protected méthode

protected getMonikerString ( UCOMIMoniker moniker ) : string
moniker UCOMIMoniker
Résultat string

getName() protected méthode

Retrieve the human-readable name of the filter
protected getName ( IMoniker moniker ) : string
moniker IMoniker
Résultat string

getName() protected méthode

protected getName ( UCOMIMoniker moniker ) : string
moniker UCOMIMoniker
Résultat string

getName() protected méthode

Get a moniker's human-readable name based on a moniker string.
protected getName ( string monikerString ) : string
monikerString string
Résultat string

Property Details

MonikerString public_oe property

Unique string referencing this filter. This string can be used to recreate this filter.
public string MonikerString
Résultat string

Name public_oe property

Human-readable name of the filter
public string Name
Résultat string