class EE::Graphics::Image::FormatConfiguration¶
Overview¶
#include <image.hpp> class FormatConfiguration { public: // methods const Uint32& jpegSaveQuality() const; void jpegSaveQuality(Uint32 level); int webpSaveQuality() const; void webpSaveQuality(int level); int webpCompressionMethod() const; void webpCompressionMethod(int method); bool webpSaveLossless() const; void webpSaveLossless(bool set); const Float& svgScale() const; void svgScale(Float scale); };
Detailed Documentation¶
Methods¶
const Uint32& jpegSaveQuality() const
Returns:
The current Jpeg save quality
void jpegSaveQuality(Uint32 level)
Set the save quality of Jpeg files ( between 0 and 100 )
int webpSaveQuality() const
Returns:
The current WebP save quality
void webpSaveQuality(int level)
Set the save quality of WebP files ( between 0 and 100 ) For lossy, 0 gives the smallest size and 100 the largest. For lossless, this parameter is the amount of effort put into the compression: 0 is the fastest but gives larger files compared to the slowest, but best, 100.
int webpCompressionMethod() const
Returns:
The current WebP save compression method.
void webpCompressionMethod(int method)
Set the save compression method of WebP files ( between 0 and 6 ) quality/speed trade-off (0=fast, 6=slower-better)
bool webpSaveLossless() const
Returns:
True if WebP should be saved in loseless format
void webpSaveLossless(bool set)
Set if WebP should be saved in loseless format
const Float& svgScale() const
Returns:
The current SVG default scale
void svgScale(Float scale)
Set the SVG default scale