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

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

#include <donut/graphics/Image.hpp>

Public Attributes

int quality = 90
 JPEG quality. More...
 
bool flipVertically = false
 Flip the saved image vertically. More...
 

Detailed Description

Options for saving an image in JPEG format.

Member Data Documentation

◆ quality

int donut::graphics::ImageSaveJPGOptions::quality = 90

JPEG quality.

Higher values yield better image quality but results in a larger file size. The compression is lossy.

◆ flipVertically

bool donut::graphics::ImageSaveJPGOptions::flipVertically = false

Flip the saved image vertically.


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