Image provider that can load JPEG (.jpg) files.
More...
#include <jpeg_provider.h>
|
static PixelBuffer | load (const std::string &filename, const FileSystem &fs, bool srgb=false) |
| Called to load an image with this provider type.
|
|
static PixelBuffer | load (const std::string &fullname, bool srgb=false) |
|
static PixelBuffer | load (IODevice &file, bool srgb=false) |
|
static void | save (PixelBuffer buffer, const std::string &filename, FileSystem &fs, int quality=85) |
| Save the given PixelBuffer into a JPEG.
|
|
static void | save (PixelBuffer buffer, const std::string &fullname, int quality=85) |
|
static void | save (PixelBuffer buffer, IODevice &file, int quality=85) |
|
Image provider that can load JPEG (.jpg) files.
◆ load() [1/3]
static PixelBuffer clan::JPEGProvider::load |
( |
const std::string & |
filename, |
|
|
const FileSystem & |
fs, |
|
|
bool |
srgb = false |
|
) |
| |
|
static |
Called to load an image with this provider type.
- Parameters
-
filename | Name of the file to load. |
directory | Directory that file name is relative to. |
◆ load() [2/3]
static PixelBuffer clan::JPEGProvider::load |
( |
const std::string & |
fullname, |
|
|
bool |
srgb = false |
|
) |
| |
|
static |
◆ load() [3/3]
◆ save() [1/3]
static void clan::JPEGProvider::save |
( |
PixelBuffer |
buffer, |
|
|
const std::string & |
filename, |
|
|
FileSystem & |
fs, |
|
|
int |
quality = 85 |
|
) |
| |
|
static |
Save the given PixelBuffer into a JPEG.
- Parameters
-
buffer | The PixelBuffer to save, format doesn't matter its converted if needed |
filename | File name of JPEG. |
directory | Directory that the file name is relative to. |
quality | The quality level of the JPEG (0-100), 100 being best quality. |
◆ save() [2/3]
static void clan::JPEGProvider::save |
( |
PixelBuffer |
buffer, |
|
|
const std::string & |
fullname, |
|
|
int |
quality = 85 |
|
) |
| |
|
static |
◆ save() [3/3]
The documentation for this class was generated from the following file: