共用方式為


IVMRSurfaceAllocatorNotify::SetBorderColor

 
Microsoft DirectShow 9.0

IVMRSurfaceAllocatorNotify::SetBorderColor

The SetBorderColor method specifies to the VMR which color to use in areas of the display rectangle which are not being used for video, for example when the video is letterboxed.

Syntax

  HRESULT SetBorderColor(
  COLORREF  clrBorder
);

Parameters

clrBorder

[in]  Specifies the border color.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also