PictureFillSymbol.withImage constructor

PictureFillSymbol.withImage(
  1. ArcGISImage image
)

Creates a picture fill symbol object 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 PictureFillSymbol.withImage(ArcGISImage image) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_PictureFillSymbol_createWithImage(
        image._handle, errorHandler);
  });
  return ArcGISSymbol._instanceCache.instanceWith(handle);
}