ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMPictureGraphic Class / Shape Property
Example

In This Topic
    Shape Property (CIMPictureGraphic)
    In This Topic
    Gets or sets the shape of the picture graphic.
    Syntax
    public Geometry Shape {get; set;}
    Public Property Shape As Geometry
    Example
    Graphic Overlay with CIMPictureGraphic
    // get the current mapview
    var mapView = MapView.Active;
    if (mapView == null)
      return;
    
          // Use SourceURL for the URL to the image content. For
          // a local file, use a file path. For a web/internet file
    // location, use its URL
          //
          // Supported image types are:
    //
    // png, jpg, tiff, bmp, gif, svg
    
          var pictureGraphic = new CIMPictureGraphic
    {
      SourceURL = @"C:\Images\MyImage.png",
      Shape = envelope
    };
    
    IDisposable _graphic = mapView.AddOverlay(pictureGraphic);
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.4 or higher.
    See Also