C# 클래스 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 );
상속: IComparable
파일 보기 프로젝트 열기: parhansson/KMotionX 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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 ( ) : 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.

비공개 메소드들

메소드 설명
Filter ( IMoniker moniker ) : System

Create a new filter from its moniker

Filter ( UCOMIMoniker moniker ) : System

메소드 상세

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 ( ) : IMoniker
리턴 IMoniker

getAnyMoniker() 보호된 메소드

protected getAnyMoniker ( ) : UCOMIMoniker
리턴 UCOMIMoniker

getMonikerString() 보호된 메소드

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

getMonikerString() 보호된 메소드

protected getMonikerString ( UCOMIMoniker moniker ) : string
moniker UCOMIMoniker
리턴 string

getName() 보호된 메소드

Retrieve the human-readable name of the filter
protected getName ( IMoniker moniker ) : string
moniker IMoniker
리턴 string

getName() 보호된 메소드

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