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)
Syntax
Public Sub New ( _
pixelWidth As Integer, _
pixelHeight As Integer _
)
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.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | pixelWidth or pixelHeight is zero or less. |
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone