Creates an icon from a stream of image data. The data must be in PNG format.
Namespace: Spotfire.Dxp.Application.Extension
Assembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 66.0.19621.1485 (66.0.19621.1485)
Syntax
C#
public static ExtensionIcon FromStream( Stream stream )
Parameters
- stream
- Type: System.IOStream
Stream containing image data.
Return Value
Type: ExtensionIconAn icon.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if stream is null. |
ArgumentException | Thrown if the data is in an unsupported format. |
Version Information
Supported in: 14.4, 14.3, 14.2, 14.1, 14.0, 12.5
See Also