Table of Contents

Method FromSvgStream

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

FromSvgStream(Stream, int, int, Color?)

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

public static ImageSet FromSvgStream(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

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

Returns

ImageSet

ImageSet instance with svg data loaded from stream.

FromSvgStream(Stream, SizeI, Color?, Color?)

Initializes a tuple with two instances of the ImageSet class from the specified Stream which contains svg data.

public static (ImageSet Normal, ImageSet Disabled) FromSvgStream(Stream stream, SizeI size, Color? color1, Color? color2)

Parameters

stream Stream

Stream with svg data.

size SizeI

Image size in pixels.

color1 Color

Svg fill color 1.

color2 Color

Svg fill color 2.

Returns

(ImageSet Normal, ImageSet Disabled)