'Declaration
Public Shared Function InsertImageFromFile( _ ByVal drawingView As NDrawingView, _ ByVal imageCenter As NPoint, _ ByVal imageFile As NFile _ ) As NPromise(Of NImage)
'Usage
Dim drawingView As NDrawingView Dim imageCenter As NPoint Dim imageFile As NFile Dim value As NPromise(Of NImage) value = NInsertImageCommandAction.InsertImageFromFile(drawingView, imageCenter, imageFile)
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.