Table of Contents

Method CreateFromSvg

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

CreateFromSvg(Stream, int, int, Color?)

Initializes a new instance of the SkiaImageHandler class from the specified Stream which contains svg data.

public static SkiaImageHandler CreateFromSvg(Stream stream, int width, int height, Color? color)

Parameters

stream Stream

Stream with svg data.

width int

Image width.

height int

Image height.

color Color

Svg fill color. Optional. If provided, svg fill color is changed to the specified value.

Returns

SkiaImageHandler

Image instance with dimensions specified in width and height and data loaded from stream.

CreateFromSvg(string, int, int, Color?)

Initializes a new instance of the Image class from the specified string which contains svg data.

public static SkiaImageHandler CreateFromSvg(string s, int width, int height, Color? color)

Parameters

s string

String with svg data.

width int

Image width.

height int

Image height.

color Color

Svg fill color. Optional. If provided, svg fill color is changed to the specified value.

Returns

SkiaImageHandler

Image instance with dimensions specified in width and height and data loaded from s.