RasterImage.Create

Create(int, int)

Creates a new raster image stored in memory.

public static RasterImage Create(int width, int height)
ParameterTypeDescription
widthInt32The width in pixels.
heightInt32The height in pixels.

Return Value

The newly created raster image.

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptionwidth or height less or equal to zero.

See Also


Create(int, int, int[])

Creates a new raster image stored in memory.

public static RasterImage Create(int width, int height, int[] argb32Pixels)
ParameterTypeDescription
widthInt32The width in pixels.
heightInt32The height in pixels.
argb32PixelsInt32[]The ARGB32 pixels for putting into the new image.

Return Value

The newly created raster image.

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptionwidth or height less or equal to zero.

See Also