SaveImageToPng
Saves an image to a PNG file.
Syntax
C++
Python
def SaveImageToPng( inImage: Image, inFile: str, /, *, inCompressionLevel: int | None = None, inIgnoreErrors: bool = False ) -> None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inImage | Image | An image to be saved | ||
![]() |
inFile | str | Path to a file | ||
![]() |
inCompressionLevel | int | None | 0 - 9 | None | Compression level |
![]() |
inIgnoreErrors | bool | False | Switches to re-trying and canceling in case of errors (e.g. when the disk is full) |

