RasterImage.Create
Contents
[
Hide
]Create(int, int)
Creates a new raster image stored in memory.
public static RasterImage Create(int width, int height)
| Parameter | Type | Description |
|---|---|---|
| width | Int32 | The width in pixels. |
| height | Int32 | The height in pixels. |
Return Value
The newly created raster image.
Exceptions
| exception | condition |
|---|---|
| ArgumentOutOfRangeException | width or height less or equal to zero. |
See Also
- class RasterImage
- namespace Aspose.Imaging
- assembly Aspose.Imaging
Create(int, int, int[])
Creates a new raster image stored in memory.
public static RasterImage Create(int width, int height, int[] argb32Pixels)
| Parameter | Type | Description |
|---|---|---|
| width | Int32 | The width in pixels. |
| height | Int32 | The height in pixels. |
| argb32Pixels | Int32[] | The ARGB32 pixels for putting into the new image. |
Return Value
The newly created raster image.
Exceptions
| exception | condition |
|---|---|
| ArgumentOutOfRangeException | width or height less or equal to zero. |
See Also
- class RasterImage
- namespace Aspose.Imaging
- assembly Aspose.Imaging