DocumentImage.toFile Method¶
Module: DocumentImage
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.
to_file(self, filepath: str, compression_level: float) -> None
Parameters
filepathstrin A string that contains the name of the file to which to save the image.compression_levelfloatin The compression level to be applied.
Exceptions
An error has occurred during Document Library execution.
void toFile(String? filepath, double compressionLevel)
Parameters
filepathStringin A string that contains the name of the file to which to save the image.compressionLeveldoublein The compression level to be applied.
Exceptions
An error has occurred during Document Library execution.
public void ToFile(string filepath, float compressionLevel)
Parameters
filepathstringin A string that contains the name of the file to which to save the image.compressionLevelfloatin The compression level to be applied.
Exceptions
An error has occurred during Document Library execution.
public void toFile(String filepath, float compressionLevel) throws DocumentException
Parameters
filepathStringin A string that contains the name of the file to which to save the image.compressionLevelfloatin The compression level to be applied.
Exceptions
An error has occurred during Document Library execution.
public func toFile(filepath: String, compressionLevel: Float) throws
Parameters
filepathStringin A string that contains the name of the file to which to save the image.compressionLevelFloatin The compression level to be applied.
Exceptions
An error has occurred during Document Library execution.
int id3DocumentImage_ToFile (
ID3_DOCUMENT_IMAGE hDocumentImage,
const char * filepath,
float compressionLevel)
Parameters
hDocumentImageID3_DOCUMENT_IMAGEin Handle to the DocumentImage object.filepathconst char *in A string that contains the name of the file to which to save the image.compressionLevelfloatin The compression level to be applied.
Returns