ImageFrame.withImageEnvelope constructor

ImageFrame.withImageEnvelope({
  1. required ArcGISImage image,
  2. required Envelope extent,
})

Creates an ImageFrame containing the image for display at the specified geographic extent.

If a spatial reference is not defined for the extent, it is assumed to be the same as the view. If the spatial reference of the extent is different from that of the map or scene, then the image would fail to render. Supported image formats are TIFF, GeoTIFF, ICO, BMP, GIF, JPEG, and PNG. Animated GIF is not supported.

Parameters:

  • image — An image to display in the frame.
  • extent — The geographic extent at which the image is displayed.