[Overview][Constants][Types][Procedures and functions][Variables] Reference for unit 'video' (#rtl)

GetVideoModeData

Get the specifications for a video mode

Declaration

Source position: videoh.inc line 150

function GetVideoModeData(

  Index: Word;

  var Data: TVideoMode

):Boolean;

Description

GetVideoModeDatareturns the characteristics of the Index-th video mode in Data. Indexis zero based, and has a maximum value of GetVideoModeCount-1. If the current driver does not support setting of modes (GetVideoModeCount=1) and Indexis zero, the current mode is returned.

The function returns Trueif the mode data was retrieved succesfully, Falseotherwise.

For an example, see GetVideoModeCount.

Errors

In case Indexhas a wrong value, Falseis returned.

See also

GetVideoModeCount

  

Get the number of video modes supported by the driver.

SetVideoMode

  

Set current video mode.

GetVideoMode

  

Return current video mode