ImageFrame.withUriPolygon constructor
Creates an ImageFrame using the uri of an image and a four-point polygon representing the corners of an image.
If a spatial reference is not defined for the polygon, it is assumed to be the same as the map or scene. If the spatial reference of the extent is different from that of the map or scene, then the image would fail to render. If the provided polygon doesn't contain exactly four points, the image frame will fail to load. Supported image formats are GeoTIFF, TIFF, JPEG, and PNG. The URL can be a local file path or an HTTP path to an image.
Parameters:
uri
— A URI that identifies a local or online image source.quadrilateral
— A polygon consisting of four points that represent each corner of the image.