Freigeben über


IVMRWindowlessControl9::SetBorderColor

 
Microsoft DirectShow 9.0

IVMRWindowlessControl9::SetBorderColor

The SetBorderColor method sets the border color to be used by the VMR.

Syntax

  HRESULT SetBorderColor(
  COLORREF  Clr
);

Parameters

Clr

[in]  Specifies the color as a COLORREF value.

Return Values

The method returns an HRESULT. Possible values include those in the following table.

Value Description
S_OK The method succeeded.

Remarks

The border color is used to fill any area of the destination rectangle that does not contain video. It is typically used in two situations:

  • When the video straddles two monitors
  • When the VMR is trying to maintain the aspect ratio of the movies by letter-boxing the video to fit within the specified destination rectangle. See SetAspectRatioMode.

Requirements

Header: Include D3d9.h, Vmr9.h.

Library: Use Strmiids.lib.

See Also