Skip to main content

IEditorView.SaveImage method

Namespace: NextDesign.Desktop

Description

Saves a bitmap image of the view displayed in the editor to the specified path.
Images can be saved in PNG, JPEG, BMP, GIF, and XPS formats.
The save format is determined from the extension of the file path of the specified save destination, and if it cannot be determined from the extension, it will be PNG format.

argument

NameTypeDescription
filePathstringFile path to save
You cannot specify null or an empty string.

Return value

  • void

Exceptions

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionIf null or empty string is specified for filePath
Invalid pathExtensionInvalidPathExceptionIf filePath specifies a file path that does not have a parent directory
Illegal operationExtensionInvalidOperationExceptionIf the image could not be retrieved from the current editor