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
Name | Type | Description |
---|---|---|
filePath | string | File path to save You cannot specify null or an empty string. |
Return value
- void
Exceptions
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If null or empty string is specified for filePath |
Invalid path | ExtensionInvalidPathException | If filePath specifies a file path that does not have a parent directory |
Illegal operation | ExtensionInvalidOperationException | If the image could not be retrieved from the current editor |