Parameters
- width
- Width of the image in pixels.
- height
- Height of the image in pixels.
| Exception | Description |
|---|---|
| System.ArgumentOutOfRangeException | Thrown if width or height is 0 or less. |
This C#/VB.NET code shows how to create an image of the specified size.
Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5