Table of Contents

Method CreateGenericImageHandler

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

CreateGenericImageHandler()

Creates IGenericImageHandler provider.

IGenericImageHandler CreateGenericImageHandler()

Returns

IGenericImageHandler

CreateGenericImageHandler(int, int, bool)

Creates IGenericImageHandler provider using the specified parameters.

IGenericImageHandler CreateGenericImageHandler(int width, int height, bool clear = false)

Parameters

width int

Image width.

height int

Image height.

clear bool

Whether or not to clear the image.

Returns

IGenericImageHandler

CreateGenericImageHandler(SizeI, bool)

Creates IGenericImageHandler provider using the specified parameters.

IGenericImageHandler CreateGenericImageHandler(SizeI size, bool clear = false)

Parameters

size SizeI

Image size.

clear bool

Whether or not to clear the image.

Returns

IGenericImageHandler

CreateGenericImageHandler(Stream, BitmapType, int)

Creates IGenericImageHandler provider using the specified parameters.

IGenericImageHandler CreateGenericImageHandler(Stream stream, BitmapType bitmapType = BitmapType.Any, int index = -1)

Parameters

stream Stream

Stream with image data.

bitmapType BitmapType

Type of the image.

index int

Image index.

Returns

IGenericImageHandler

CreateGenericImageHandler(Stream, string, int)

Creates IGenericImageHandler provider using the specified parameters.

IGenericImageHandler CreateGenericImageHandler(Stream stream, string mimeType, int index = -1)

Parameters

stream Stream

Stream with image data.

mimeType string

Mime-type of the image.

index int

Image index.

Returns

IGenericImageHandler

CreateGenericImageHandler(int, int, RGBValue[])

Creates IGenericImageHandler provider using the specified parameters.

IGenericImageHandler CreateGenericImageHandler(int width, int height, RGBValue[] data)

Parameters

width int

Image width.

height int

Image height.

data RGBValue[]

Array with image pixels.

Returns

IGenericImageHandler

CreateGenericImageHandler(int, int, SKColor[])

Creates IGenericImageHandler provider using the specified parameters.

IGenericImageHandler CreateGenericImageHandler(int width, int height, SKColor[] data)

Parameters

width int

Image width.

height int

Image height.

data SKColor[]

Array with image pixels.

Returns

IGenericImageHandler

CreateGenericImageHandler(int, int, RGBValue[], byte[])

Creates IGenericImageHandler provider using the specified parameters.

IGenericImageHandler CreateGenericImageHandler(int width, int height, RGBValue[] data, byte[] alpha)

Parameters

width int

Image width.

height int

Image height.

data RGBValue[]

Array with image pixels.

alpha byte[]

Array with alpha component of the pixels.

Returns

IGenericImageHandler