Click or drag to resize

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.1.418.0 (24.1.418.0)
Syntax
public static CesiumResource FromStream(
	Stream stream,
	CesiumImageFormat imageFormat
)

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: CesiumResource
A new CesiumResource containing the image data as a data URI.
See Also