## Create(int, int) {#create}

Creates a new raster image stored in memory.

```csharp
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](../../rasterimage/)
* assembly [Aspose.Imaging](../../../)

---

## Create(int, int, int[]) {#create_1}

Creates a new raster image stored in memory.

```csharp
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](../../rasterimage/)
* assembly [Aspose.Imaging](../../../)


