Jaa


VirtualSurfaceImageSource Constructors

Definition

Overloads

VirtualSurfaceImageSource(Int32, Int32)

Initializes a new instance of the VirtualSurfaceImageSource class, specifying the size of the drawing area.

VirtualSurfaceImageSource(Int32, Int32, Boolean)

Initializes a new instance of the VirtualSurfaceImageSource class, specifying the size of the drawing area and a preference for whether to render with an alpha transparency.

VirtualSurfaceImageSource(Int32, Int32)

Initializes a new instance of the VirtualSurfaceImageSource class, specifying the size of the drawing area.

public:
 VirtualSurfaceImageSource(int pixelWidth, int pixelHeight);
 VirtualSurfaceImageSource(int const& pixelWidth, int const& pixelHeight);
public VirtualSurfaceImageSource(int pixelWidth, int pixelHeight);
function VirtualSurfaceImageSource(pixelWidth, pixelHeight)
Public Sub New (pixelWidth As Integer, pixelHeight As Integer)

Parameters

pixelWidth
Int32

int

Width of the drawing area in pixels.

pixelHeight
Int32

int

Height of the drawing area in pixels.

Remarks

Windows 8 behavior

Windows 8 validates that pixelWidth and pixelHeight are under 100 million (100,000,000). Starting with Windows 8.1 the validation limit is 17 million (17,000,000) in each dimension. > [!NOTE]

Other factors might impact how much content can be rendered in a single VirtualSurfaceImageSource. For example, placing a VirtualSurfaceImageSource in a ScrollViewer might further reduce the effective size based on the ScrollViewer's limits.

See also

Applies to

VirtualSurfaceImageSource(Int32, Int32, Boolean)

Initializes a new instance of the VirtualSurfaceImageSource class, specifying the size of the drawing area and a preference for whether to render with an alpha transparency.

public:
 VirtualSurfaceImageSource(int pixelWidth, int pixelHeight, bool isOpaque);
 VirtualSurfaceImageSource(int const& pixelWidth, int const& pixelHeight, bool const& isOpaque);
public VirtualSurfaceImageSource(int pixelWidth, int pixelHeight, bool isOpaque);
function VirtualSurfaceImageSource(pixelWidth, pixelHeight, isOpaque)
Public Sub New (pixelWidth As Integer, pixelHeight As Integer, isOpaque As Boolean)

Parameters

pixelWidth
Int32

int

Width of the drawing area in pixels.

pixelHeight
Int32

int

Height of the drawing area in pixels.

isOpaque
Boolean

bool

true if the area should render opaque. false to render with possible alpha transparency.

Remarks

Windows 8 behavior

Windows 8 validates that pixelWidth and pixelHeight are under 100 million (100,000,000). Starting with Windows 8.1 the validation limit is 17 million (17,000,000) in each dimension. > [!NOTE]

Other factors might impact how much content can be rendered in a single VirtualSurfaceImageSource. For example, placing a VirtualSurfaceImageSource in a ScrollViewer might further reduce the effective size based on the ScrollViewer's limits.

See also

Applies to