If required, the image is automatically converted to a new image and then saved. An image with a bit depth higher than 8 bit is stored with 16 bit bit depth if supported by the image file format. In this case, the pixel data is MSB aligned. If more control over the conversion is required, the PixelDataConverter class can be used to convert the input image before saving it.
Preconditions:
The pixel type of the image to save must be a supported input format of the PixelDataConverter.
The image must be valid.
Thread Safety: This method is thread-safe.
Error Safety: Throws an exception if saving the image fails.
If required, the image is automatically converted to a new image and then saved. An image with a bit depth higher than 8 bit is stored with 16 bit bit depth if supported by the image file format. In this case, the pixel data is MSB aligned. If more control over the conversion is required, the PixelDataConverter class can be used to convert the input image before saving it.
Preconditions:
The bufferSize value must be >= 0.
The pixel type of the image to save must be a supported input format of the PixelDataConverter.
The width value must be >= 0.
The height value must be >= 0.
The paddingX value must be >= 0.
Thread Safety: This method is thread-safe.
Error Safety: Throws an exception if saving the image fails.
If required, the image is automatically converted to a new image and then saved. An image with a bit depth higher than 8 bit is stored with 16 bit bit depth if supported by the image file format. In this case, the pixel data is MSB aligned. If more control over the conversion is required, the PixelDataConverter class can be used to convert the input image before saving it.
Preconditions:
The pixel type of the image to save must be a supported input format of the PixelDataConverter.
The width value must be >= 0.
The height value must be >= 0.
The paddingX value must be >= 0.
Thread Safety: This method is thread-safe.
Error Safety: Throws an exception if saving the image fails.