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: 24.3.420.0 (24.3.420.0)
Syntax public static CesiumResource FromImage(
Image image,
CesiumImageFormat imageFormat
)
Public Shared Function FromImage (
image As Image,
imageFormat As CesiumImageFormat
) As CesiumResource
public:
static CesiumResource^ FromImage(
Image^ image,
CesiumImageFormat imageFormat
)
static member FromImage :
image : Image *
imageFormat : CesiumImageFormat -> CesiumResource
Parameters
- image
- Type: System.DrawingImage
The image 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