Back to Devexpress

SvgImage.FromStream(Stream) Method

corelibraries-devexpress-dot-utils-dot-svg-dot-svgimage-dot-fromstream-x28-system-dot-io-dot-stream-x29.md

latest4.1 KB
Original Source

SvgImage.FromStream(Stream) Method

Creates a new SvgImage object from a vector image stored in a stream.

Namespace : DevExpress.Utils.Svg

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public static SvgImage FromStream(
    Stream stream
)
vb
Public Shared Function FromStream(
    stream As Stream
) As SvgImage

Parameters

NameTypeDescription
streamStream

The stream that stores the image.

|

Returns

TypeDescription
SvgImage

A newly created SvgImage object.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the FromStream(Stream) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

XAF_Non-Persistent-Objects-Filtering-Demo/CS/EFCore/NonPersistentFilteringEF.Win/XafSplashScreen.cs#L19

csharp
svgStream.Position = 0;
    peLogo.SvgImage = SvgImage.FromStream(svgStream);
}

XAF_Non-Persistent-Objects-Reloading-Demo/CS/EFCore/NonPersReloadEF/NonPersReloadEF.Win/XafSplashScreen.cs#L19

csharp
svgStream.Position = 0;
    peLogo.SvgImage = SvgImage.FromStream(svgStream);
}

XAF_How-to-get-role-code-from-the-UI/CS/EFCore/GenerateRoleEF/GenerateRoleEF.Win/XafSplashScreen.cs#L19

csharp
svgStream.Position = 0;
    peLogo.SvgImage = SvgImage.FromStream(svgStream);
}

xaf-win-gantt-control/CS/EF/GanttSolution/GanttSolution.Win/XafSplashScreen.cs#L19

csharp
svgStream.Position = 0;
    peLogo.SvgImage = SvgImage.FromStream(svgStream);
}

XAF_Non-Persistent-Objects-Edit-Linked-Persistent-Objects-Demo/CS/EFCore/NonPersistentEditEF/NonPersistentEditEF.Win/XafSplashScreen.cs#L19

csharp
svgStream.Position = 0;
    peLogo.SvgImage = SvgImage.FromStream(svgStream);
}

XAF-CRUD-for-Non-Persistent-Objects-Stored-Remotely/VB/NonPersistentObjectsDemo.Win/XafSplashScreen.vb#L21

vb
svgStream.Position = 0
    peLogo.SvgImage = SvgImage.FromStream(svgStream)
End If

See Also

SvgImage Class

SvgImage Members

DevExpress.Utils.Svg Namespace