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.
Assembly: System.Windows (in System.Windows.dll)
Parameters
- pixelWidth
- Type: System.Int32
The width of the bitmap.
- pixelHeight
- Type: System.Int32
The height of the bitmap.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | pixelWidth or pixelHeight is zero or less. |
Show: