.. index:: pair: class; EE::Graphics::Image::FormatConfiguration .. _doxid-class_e_e_1_1_graphics_1_1_image_1_1_format_configuration: class EE::Graphics::Image::FormatConfiguration ============================================== .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class FormatConfiguration { public: // methods const :ref:`Uint32`& :ref:`jpegSaveQuality`() const; void :ref:`jpegSaveQuality`(:ref:`Uint32` level); int :ref:`webpSaveQuality`() const; void :ref:`webpSaveQuality`(int level); int :ref:`webpCompressionMethod`() const; void :ref:`webpCompressionMethod`(int method); bool :ref:`webpSaveLossless`() const; void :ref:`webpSaveLossless`(bool set); const :ref:`Float`& :ref:`svgScale`() const; void :ref:`svgScale`(:ref:`Float` scale); }; .. _details-class_e_e_1_1_graphics_1_1_image_1_1_format_configuration: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; jpegSaveQuality .. _doxid-class_e_e_1_1_graphics_1_1_image_1_1_format_configuration_1adc634a6240b248cf0696ee1fbb6ef077: .. ref-code-block:: cpp :class: doxyrest-title-code-block const :ref:`Uint32`& jpegSaveQuality() const .. rubric:: Returns: The current Jpeg save quality .. index:: pair: function; jpegSaveQuality .. _doxid-class_e_e_1_1_graphics_1_1_image_1_1_format_configuration_1a9d4abb0cf88affa59058a506a9bd604b: .. ref-code-block:: cpp :class: doxyrest-title-code-block void jpegSaveQuality(:ref:`Uint32` level) Set the save quality of Jpeg files ( between 0 and 100 ) .. index:: pair: function; webpSaveQuality .. _doxid-class_e_e_1_1_graphics_1_1_image_1_1_format_configuration_1a37bb551610670d1a324013206ac17bc3: .. ref-code-block:: cpp :class: doxyrest-title-code-block int webpSaveQuality() const .. rubric:: Returns: The current WebP save quality .. index:: pair: function; webpSaveQuality .. _doxid-class_e_e_1_1_graphics_1_1_image_1_1_format_configuration_1a9e8d9fdb2462876d773885edfeb8998b: .. ref-code-block:: cpp :class: doxyrest-title-code-block 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. .. index:: pair: function; webpCompressionMethod .. _doxid-class_e_e_1_1_graphics_1_1_image_1_1_format_configuration_1a270bb94cb8f2b4d22d24c6c0cf8d4cff: .. ref-code-block:: cpp :class: doxyrest-title-code-block int webpCompressionMethod() const .. rubric:: Returns: The current WebP save compression method. .. index:: pair: function; webpCompressionMethod .. _doxid-class_e_e_1_1_graphics_1_1_image_1_1_format_configuration_1a27e46abf7c6f8386a4bc19a842dee861: .. ref-code-block:: cpp :class: doxyrest-title-code-block 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) .. index:: pair: function; webpSaveLossless .. _doxid-class_e_e_1_1_graphics_1_1_image_1_1_format_configuration_1a9858b9268ee02efe53db6e3483283b25: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool webpSaveLossless() const .. rubric:: Returns: True if WebP should be saved in loseless format .. index:: pair: function; webpSaveLossless .. _doxid-class_e_e_1_1_graphics_1_1_image_1_1_format_configuration_1adca2852b37eacbcb1b36cd38017a6694: .. ref-code-block:: cpp :class: doxyrest-title-code-block void webpSaveLossless(bool set) Set if WebP should be saved in loseless format .. index:: pair: function; svgScale .. _doxid-class_e_e_1_1_graphics_1_1_image_1_1_format_configuration_1a5c4d84677aa9bd25e6b406d281c5c901: .. ref-code-block:: cpp :class: doxyrest-title-code-block const :ref:`Float`& svgScale() const .. rubric:: Returns: The current SVG default scale .. index:: pair: function; svgScale .. _doxid-class_e_e_1_1_graphics_1_1_image_1_1_format_configuration_1aae155b182c7c086a2b04a99a26e6286a: .. ref-code-block:: cpp :class: doxyrest-title-code-block void svgScale(:ref:`Float` scale) Set the SVG default scale