NevronOpenVision
Nevron.Nov.Diagram.DrawingCommands Namespace / NInsertImageCommandAction Class / InsertImageFromFile Method
The drawing view to insert an image to.
The location of the image center in active page coordinates.
The file to load the image from.
In This Topic
    InsertImageFromFile Method
    In This Topic
    Loads an image from the given file and inserts an image (embeds the image file) in the active page of the given drawing view at the specified location as the center of the image.
    Syntax
    public static NPromise<NImage> InsertImageFromFile( 
       NDrawingView drawingView,
       NPoint imageCenter,
       NFile imageFile
    )

    Parameters

    drawingView
    The drawing view to insert an image to.
    imageCenter
    The location of the image center in active page coordinates.
    imageFile
    The file to load the image from.

    Return Value

    The inserted image.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also