Table of Contents

Method FromSvgStream

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

FromSvgStream(Stream, int, int, Color?)

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

public static Image 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

Image

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