ImageEn, unit ieDS

TIEDirectShow.SetCurrentVideoFormat

TIEDirectShow.SetCurrentVideoFormat

Declaration

procedure SetCurrentVideoFormat(width, height: Integer; format: AnsiString = '');

Description

Allows you to set the video format. You can read supported formats with the VideoFormats property.
The format parameter is equivalent to VideoFormats.Format. Or you can simply pass an empty string.

Note: To set frame resolution on webcams, you must use the additional parameters of SetVideoInput instead of SetCurrentVideoFormat.

The device's own media type for that format and size is used. If the device lists it at several frame rates, the current frame rate is kept when the device supports it.
An exception is raised if the device does not accept the format.

Example

// Set current video format
ImageEnView1.IO.DShowParams.SetCurrentVideoFormat( 600, 400 );

See Also

◼VideoFormats
◼SetVideoInput