VideoFormatDesc.CreateVideoFormat Method

This method creates a VideoFormat with the specified size based on the specification of this VideoFormatDesc.
Syntax:
[C#]
public VideoFormat CreateVideoFormat( System.Drawing.Size sz ); public VideoFormat CreateVideoFormat( int width, int height );
Parameter Description
sz

Size of the video format to be created.

width

Width of the video format to be created.

height

Height of the video format to be created.

Return value:

A VideoFormat instance with the specified size. An invalid VideoFormat is returned if the specified size does not match this VideoFormatDesc.

See also: VideoFormatDesc, VideoFormatDesc.IsValidSize, VideoFormat

<< VideoFormatDesc