ArcGIS Pro Add a picture

   // get the current mapview and point
            var mapView = MapView.Active;
            if (mapView == null)
                return;
            var pictureGraphic = new CIMPictureGraphic();
            pictureGraphic.PictureURL = @"file:///E:/Stuff/gisoracle.png";
            pictureGraphic.Box = envelope;
            _graphic = mapView.AddOverlay(pictureGraphic);         

 

Guess you like

Origin www.cnblogs.com/gisoracle/p/12520160.html