setImageWithSize method

void setImageWithSize({
  1. required ArcGISImage image,
  2. required double width,
  3. required double height,
})

Sets the image that should be used to display the reticle at a desired size on the ArcGISMapViewController.

The center of the image is used as the target position for edits, so bear this in mind when creating your own custom reticle images and ensure the edit position is clear to your users. The image should be designed to avoid obscuring too much of the map and the geometry editor feedback, for example by using large areas of transparent or semi-transparent pixels.

Parameters:

  • image — Image to be used for the reticle.
  • width — The desired width of the image when displayed in the ArcGISMapViewController in DIPS.
  • height — The desired height of the image when displayed in the ArcGISMapViewController in DIPs.

Implementation

void setImageWithSize({
  required ArcGISImage image,
  required double width,
  required double height,
}) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_GeometryEditorReticle_setImageWithSize(
      _handle,
      image._handle,
      width,
      height,
      errorHandler,
    );
  });
}