WriteableBitmap Constructor (Int32, Int32)
Collapse the table of content
Expand the table of content

WriteableBitmap Constructor (Int32, Int32)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the WriteableBitmap class using the provided dimensions.

Namespace:  System.Windows.Media.Imaging
Assembly:  System.Windows (in System.Windows.dll)

public WriteableBitmap(
	int pixelWidth,
	int pixelHeight
)

Parameters

pixelWidth
Type: System.Int32
The width of the bitmap.
pixelHeight
Type: System.Int32
The height of the bitmap.

ExceptionCondition
ArgumentOutOfRangeException

pixelWidth or pixelHeight is zero or less.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft