PictureMarkerSymbol.withImage constructor
- ArcGISImage image
Creates a picture marker symbol with the given image.
Supported image formats are BMP, GIF, ICO, JPEG, and PNG. Animated GIF is not supported.
Parameters:
image
— The image.
Implementation
factory PictureMarkerSymbol.withImage(
ArcGISImage image,
) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_PictureMarkerSymbol_createWithImage(
image._handle,
errorHandler,
);
});
return ArcGISSymbol._instanceCache.instanceWith(handle);
}