CesiumResourceFromStream Method (Stream, CesiumImageFormat) |
Create a CZML resource from a stream containing image data. The image data will
be embedded in the CZML document using a data URI.
Namespace:
AGI.Foundation.Cesium
Assembly:
AGI.Foundation.Cesium (in AGI.Foundation.Cesium.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public static CesiumResource FromStream(
Stream stream,
CesiumImageFormat imageFormat
)
Public Shared Function FromStream (
stream As Stream,
imageFormat As CesiumImageFormat
) As CesiumResource
public:
static CesiumResource^ FromStream(
Stream^ stream,
CesiumImageFormat imageFormat
)
static member FromStream :
stream : Stream *
imageFormat : CesiumImageFormat -> CesiumResource
Parameters
- stream
- Type: System.IOStream
The stream containing image data to write. - imageFormat
- Type: AGI.Foundation.CesiumCesiumImageFormat
The format of the image.
Return Value
Type:
CesiumResourceA new
CesiumResource containing the image data as a data URI.
See Also