Share via


OverlaySurface.Allocate Method

Allocates the memory for the bitmap of the drawing surface.

Syntax

  public void Allocate(
  Microsoft.MediaCenter.UI.Size  size,
  bool  widescreen,
  bool  scaleToViewport
);

Parameters

size

Microsoft.MediaCenter.UI.Size. The size (height and width) of the overlay surface, in pixels.

widescreen

System.Boolean. Indicates whether the overlay surface will be displayed in widescreen format.

scaleToViewport

System.Boolean. Indicates whether to scale the overlay surface to the player view port.

Return Value

This method does not return a value.

Remarks

This method is the first method called for the OverlaySurface object.

Requirements

Reference: Microsoft.MediaCenter.ITVVM

Namespace: Microsoft.MediaCenter.TVVM

Assembly: Microsoft.MediaCenter.ITVVM.dll

Platform: Windows 7

See Also