ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMPictureGraphic Class / PictureURL Property
Example

In This Topic
    PictureURL Property
    In This Topic
    Gets or sets the URL of the picture graphic. Typically a base64 encoded representation of the picture.
    Syntax
    public string PictureURL {get; set;}
    Public Property PictureURL As String
    Example
    Graphic Overlay with CIMPictureGraphic
    // get the current mapview
    var mapView = MapView.Active;
    if (mapView == null)
      return;
    
    //Valid formats for PictureURL are:
    // e.g. local file URL:
    // file:///<path>
    // file:///c:/images/symbol.png
    //
    // e.g. network file URL:
    // file://<host>/<path>
    // file://server/share/symbol.png
    //
    // e.g. data URL:
    // data:<mediatype>;base64,<data>
    // data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAU ...
    //
    // image/bmp
    // image/gif
    // image/jpeg
    // image/png
    // image/tiff
    // image/x-esri-bglf
    
    var pictureGraphic = new CIMPictureGraphic
    {
      PictureURL = @"file:///C:/Images/MyImage.png",
      Box = envelope
    };
    
    IDisposable _graphic = mapView.AddOverlay(pictureGraphic);
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also