Show / Hide Table of Contents

Constructor ImageFrame

ImageFrame(RuntimeImage, Envelope)

Initializes a new instance of the ImageFrame class that contains the image for display at the specified geographic extent.

Declaration
public ImageFrame(RuntimeImage image, Envelope extent)
Parameters
Type Name Description
RuntimeImage image

An image to display in the frame.

Envelope extent

The geographic extent at which the image is displayed.

Remarks

If a spatial reference is not defined for the extent, it is assumed to be the same as the scene. If the spatial reference of the extent is different from that of the 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.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.8 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.8 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.8 - 100.12
Xamarin.Android100.8 - 100.15
Xamarin.iOS100.8 - 100.15
UWP100.8 - 100.15

ImageFrame(RuntimeImage, Polygon)

Initializes a new instance of the ImageFrame class using the image and a four-point polygon representing the corners of an image.

Declaration
public ImageFrame(RuntimeImage image, Polygon quadrilateral)
Parameters
Type Name Description
RuntimeImage image

An image to display in the frame.

Polygon quadrilateral

A polygon consisting of four points that represent each corner of the image.

Remarks

If a spatial reference is not defined for the polygon, it is assumed to be the same as the scene. If the spatial reference of the extent is different from that of the scene, then the image would fail to render. If the provided polygon does not contain exactly four points, the image frame will fail to load. Supported image formats are TIFF, GeoTIFF, ICO, BMP, GIF, JPEG, and PNG. Animated GIF is not supported.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.8 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.8 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.8 - 100.12
Xamarin.Android100.8 - 100.15
Xamarin.iOS100.8 - 100.15
UWP100.8 - 100.15

ImageFrame(Uri)

Initializes a new instance of the ImageFrame class containing the image defined by the provided uri.

Declaration
public ImageFrame(Uri uri)
Parameters
Type Name Description
Uri uri

A uri that identifies a local or online image source.

Remarks

Supported image formats are GeoTIFF, TIFF, JPEG, and PNG. The URI can be a local file path or an HTTP path to an image.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.8 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.8 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.8 - 100.12
Xamarin.Android100.8 - 100.15
Xamarin.iOS100.8 - 100.15
UWP100.8 - 100.14

ImageFrame(Uri, Envelope)

Initializes a new instance of the ImageFrame class containing the image identified by the uri for display at the specified geographic extent.

Declaration
public ImageFrame(Uri uri, Envelope extent)
Parameters
Type Name Description
Uri uri

A uri that identifies a local or online image source.

Envelope extent

The geographic extent at which the image is displayed.

Remarks

If a spatial reference is not defined for the extent, it is assumed to be the same as the scene. If the spatial reference of the extent is different from that of the scene, then the image would fail to render. Supported image formats are GeoTIFF, TIFF, JPEG, and PNG. The URI can be a local file path or an HTTP path to an image.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.8 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.8 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.8 - 100.12
Xamarin.Android100.8 - 100.15
Xamarin.iOS100.8 - 100.15
UWP100.8 - 100.14

ImageFrame(Uri, Polygon)

Initializes a new instance of the ImageFrame class using the uri of an image and a four-point polygon representing the corners of an image.

Declaration
public ImageFrame(Uri uri, Polygon quadrilateral)
Parameters
Type Name Description
Uri uri

A uri that identifies a local or online image source.

Polygon quadrilateral

A polygon consisting of four points that represent each corner of the image.

Remarks

If a spatial reference is not defined for the polygon, it is assumed to be the same as the scene. If the spatial reference of the extent is different from that of the scene, then the image would fail to render. If the provided polygon does not 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.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.8 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.8 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.8 - 100.12
Xamarin.Android100.8 - 100.15
Xamarin.iOS100.8 - 100.15
UWP100.8 - 100.14
In This Article
Back to top Copyright © 2022 Esri.