ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Layouts Namespace / IGraphicFactory Interface / CreatePictureGraphic Method
The picture graphic envelope (frame) or center point
The url of the image to use

In This Topic
    CreatePictureGraphic Method (IGraphicFactory)
    In This Topic
    Creates a picture graphic based on the input geometry and symbol. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Function CreatePictureGraphic( _
       ByVal frameOrLocation As Geometry, _
       ByVal url As String _
    ) As CIMPictureGraphic

    Parameters

    frameOrLocation
    The picture graphic envelope (frame) or center point
    url
    The url of the image to use

    Return Value

    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    empty or null geometry
    empty or null url
    Remarks
    If a point is specified, the picture frame is sized to the extent of the content. If an envelope is specified, the content is sized to fit the extent of the frame.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also