Vcl.MPlayer.TMediaPlayer.DisplayRect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property DisplayRect: TRect read GetDisplayRect write SetDisplayRect;

C++

__property System::Types::TRect DisplayRect = {read=GetDisplayRect, write=SetDisplayRect};

Properties

Type Visibility Source Unit Parent
property public
Vcl.MPlayer.pas
Vcl.MPlayer.hpp
Vcl.MPlayer TMediaPlayer

Description

Specifies a rectangular area in the control specified by the Display property that is used to display output from a multimedia device.

To display output in a specific rectangle area on a form assign a TRect record to DisplayRect. The Rect function can be used to create a TRect record.

Media that use a rectangle to display output usually perform best if the default DisplayRect size is used. To set DisplayRect to the default size, position the rectangle in the upper left corner and use 0, 0 for the lower right corner.

DisplayRect is ignored if Display is nil (Delphi) or NULL (C++).

Examples of multimedia devices that use a window to display output are Animation, AVI Video, Digital Video, Overlay, and VCR.

Note: DisplayRect can be set only after the media device is opened.

See Also