claw::graphic::jpeg::writer::options Struct Reference

Parameters of the writing algorithm. More...

`#include <jpeg.hpp>`

## Public Member Functions

| options ()
| Default constructor. More...
| options (unsigned char compression_quality_, bool progressive_)
| Constructor. More...

## Public Attributes

unsigned char | quality
| Quality level to use in the saved stream.
bool | progressive
| Tell if we save a progressive jpeg.

## Detailed Description

Parameters of the writing algorithm.

Definition at line 174 of file jpeg.hpp.

## Constructor & Destructor Documentation

## options() [1/2]

claw::graphic::jpeg::writer::options::options | ( |  | ) |

Default constructor.

Remarks
  Default options are quality = 75 % and progressive = false.

Definition at line 137 of file jpeg_writer.cpp.

## options() [2/2]

claw::graphic::jpeg::writer::options::options | ( | unsigned char | quality_,
|  | bool | progressive_
| ) |  |

Constructor.

Parameters

  quality_ | Quality of the saved image.
  progressive_ | Tell if we save a progressive jpeg.

Remarks
  If quality_ > 100, then it will be adjusted to 100 when saving.

Definition at line 151 of file jpeg_writer.cpp.

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

- jpeg.hpp
- code/jpeg_writer.cpp