corelibraries-devexpress-dot-utils-dot-svg-dot-svgimage-dot-fromstream-x28-system-dot-io-dot-stream-x29.md
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
public static SvgImage FromStream(
Stream stream
)
Public Shared Function FromStream(
stream As Stream
) As SvgImage
| Name | Type | Description |
|---|---|---|
| stream | Stream |
The stream that stores the image.
|
| Type | Description |
|---|---|
| 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.
svgStream.Position = 0;
peLogo.SvgImage = SvgImage.FromStream(svgStream);
}
svgStream.Position = 0;
peLogo.SvgImage = SvgImage.FromStream(svgStream);
}
svgStream.Position = 0;
peLogo.SvgImage = SvgImage.FromStream(svgStream);
}
xaf-win-gantt-control/CS/EF/GanttSolution/GanttSolution.Win/XafSplashScreen.cs#L19
svgStream.Position = 0;
peLogo.SvgImage = SvgImage.FromStream(svgStream);
}
svgStream.Position = 0;
peLogo.SvgImage = SvgImage.FromStream(svgStream);
}
svgStream.Position = 0
peLogo.SvgImage = SvgImage.FromStream(svgStream)
End If
See Also