Table of Contents

Method CreateImageHandlerFromSvg

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

CreateImageHandlerFromSvg(Stream, int, int, Color?)

Creates IImageHandler provider for svg image using the specified parameters.

IImageHandler CreateImageHandlerFromSvg(Stream stream, int width, int height, Color? color = null)

Parameters

stream Stream

Stream with svg data.

width int

Image width.

height int

Image height.

color Color

Default color of the svg figures.

Returns

IImageHandler

CreateImageHandlerFromSvg(string, int, int, Color?)

Creates IImageHandler provider for svg image using the specified parameters.

IImageHandler CreateImageHandlerFromSvg(string s, int width, int height, Color? color = null)

Parameters

s string

String with svg data.

width int

Image width.

height int

Image height.

color Color

Default color of the svg figures.

Returns

IImageHandler