SurfaceImageSource.SurfaceImageSource(Int32, Int32, Boolean) constructor

This topic has not yet been rated - Rate this topic

Initializes a new instance of the SurfaceImageSource class, specifying the size of the drawing area, and whether opacity is expected to be always full opacity. Use this with isOpaque=true if SurfaceImageSource should not support transparency; this can increase performance.

Syntax


public SurfaceImageSource(
  int pixelWidth, 
  int pixelHeight, 
  bool isOpaque
)

Parameters

pixelWidth

Type: System.Int32 [.NET] | int32 [C++]

Width of the drawing area in pixels.

pixelHeight

Type: System.Int32 [.NET] | int32 [C++]

Height of the drawing area in pixels.

isOpaque

Type: System.Boolean [.NET] | Platform::Boolean [C++]

true if the area should render opaque. false to render with possible alpha transparency. A value of true can provide a performance benefit if the content is not transparent.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

Windows.UI.Xaml.Media.Imaging
Windows::UI::Xaml::Media::Imaging [C++]

Metadata

Windows.winmd

See also

SurfaceImageSource
SurfaceImageSource(Int32, Int32)

 

 

Build date: 12/4/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.