Applies to

TMediaPlayer component Declaration property DisplayRect: TRect;

Run-time only. The DisplayRect property specifies the rectangle area within the form specified in the Display property used to display output from a multimedia device. DisplayRect is ignored if Display is nil.

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

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

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, use 0, 0 for the lower right corner. Position the rectangle with the upper left corner.

Note You must set DisplayRect after the media device is opened.

0 0

Post a comment