Click or drag to resize

CesiumResourceFromImage Method

Create a CZML resource from an image loaded into memory. 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: 19.1.398.0 (19.1.398.0)
Syntax
public static CesiumResource FromImage(
	Image image,
	CesiumImageFormat imageFormat
)

Parameters

image
Type: System.DrawingImage
The image 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