Image.toFile Method¶
Module: Image
Definition¶
Saves the image to the specified file.
The compression level meaning depends on the algorithm used:
For JPEG compression, the value is the expected quality and may vary from 1 to 100.
For JPEG2000 compression, the value is the compression rate and may vary from 1 to 512.
For PNG compression, the value is the compression rate and may vary from 1 to 10.
For all other formats, the value is ignored.
void toFile(String? filepath, double compressionLevel)
Parameters
filepath Stringin A string that contains the name of the file to which to save the image.
compressionLevel doublein The compression level to be applied.
Exceptions
An error has occurred during Face Library execution.