Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
The LoadWriterJPG class is a ResourceLoadWriter capable of reading JPG files. More...
#include <ioJPG.hpp>
Public Member Functions | |
LoadWriterJPG () | |
ref< ResourceDatabase > | loadResource (const String &path) const |
ref< ResourceDatabase > | loadResource (VirtualFile *file) const |
bool | writeResource (const String &path, ResourceDatabase *resource) const |
bool | writeResource (VirtualFile *file, ResourceDatabase *resource) const |
int | quality () const |
void | setQuality (int quality) |
Sets the quality level used when saving a file. Must be between 0 and 100. | |
Protected Attributes | |
int | mQuality |
The LoadWriterJPG class is a ResourceLoadWriter capable of reading JPG files.
Definition at line 58 of file ioJPG.hpp.
vl::LoadWriterJPG::LoadWriterJPG | ( | ) | [inline] |
Definition at line 63 of file ioJPG.hpp.
References VL_DEBUG_SET_OBJECT_NAME.
ref<ResourceDatabase> vl::LoadWriterJPG::loadResource | ( | const String & | path ) | const [inline, virtual] |
Implements vl::ResourceLoadWriter.
Definition at line 68 of file ioJPG.hpp.
References vl::loadJPG().
ref<ResourceDatabase> vl::LoadWriterJPG::loadResource | ( | VirtualFile * | file ) | const [inline, virtual] |
Implements vl::ResourceLoadWriter.
Definition at line 77 of file ioJPG.hpp.
References vl::loadJPG().
bool vl::LoadWriterJPG::writeResource | ( | const String & | path, |
ResourceDatabase * | resource | ||
) | const [inline, virtual] |
Implements vl::ResourceLoadWriter.
Definition at line 86 of file ioJPG.hpp.
References vl::ResourceDatabase::count(), vl::ResourceDatabase::get(), quality(), and vl::saveJPG().
bool vl::LoadWriterJPG::writeResource | ( | VirtualFile * | file, |
ResourceDatabase * | resource | ||
) | const [inline, virtual] |
Implements vl::ResourceLoadWriter.
Definition at line 94 of file ioJPG.hpp.
References vl::ResourceDatabase::count(), vl::ResourceDatabase::get(), quality(), and vl::saveJPG().
int vl::LoadWriterJPG::quality | ( | ) | const [inline] |
Definition at line 102 of file ioJPG.hpp.
References mQuality.
Referenced by setQuality(), and writeResource().
void vl::LoadWriterJPG::setQuality | ( | int | quality ) | [inline] |
int vl::LoadWriterJPG::mQuality [protected] |
Definition at line 107 of file ioJPG.hpp.
Referenced by quality(), and setQuality().