libdonut  2.3.2
Application framework for cross-platform game development in C++20
Public Attributes | List of all members
donut::graphics::ImageSavePNGOptions Struct Reference

Options for saving an image in PNG format. More...

#include <donut/graphics/Image.hpp>

Public Attributes

int compressionLevel = 8
 PNG compression level. More...
 
bool flipVertically = false
 Flip the saved image vertically. More...
 

Detailed Description

Options for saving an image in PNG format.

Member Data Documentation

◆ compressionLevel

int donut::graphics::ImageSavePNGOptions::compressionLevel = 8

PNG compression level.

Use a higher value for a higher degree of compression and smaller file size at the cost of encoding/decoding performance. The compression is lossless.

◆ flipVertically

bool donut::graphics::ImageSavePNGOptions::flipVertically = false

Flip the saved image vertically.


The documentation for this struct was generated from the following file: