#include <StkImageStbIO.h>
|
|
| ImageStbIO (std::string filename="") |
| |
|
| ImageStbIO (const std::vector< uint8_t > &buffer) |
| |
|
void | setQuality (int q) |
| | Set JPEG compression quality (0-100).
|
| |
|
int | getQuality () const |
| |
| bool | load (Image &img) override |
| |
| bool | save (const Image &img) override |
| |
| bool | readHeader (Image &img) override |
| |
| bool | open (OpenMode mode=READ) override |
| |
| bool | close () override |
| |
|
| ImageIO (const std::string &filename, const char *opts=nullptr) |
| |
|
void | setFilename (const std::string &filename) |
| |
|
const std::string & | getFilename () const |
| |
|
virtual bool | readSubImage (const Image &hdr, Image &img, int startx, int starty, int width, int height) |
| |
| virtual bool | load (Image &img)=0 |
| |
| virtual bool | save (const Image &img)=0 |
| |
|
virtual bool | readHeader (Image &img)=0 |
| |
|
virtual bool | open (OpenMode mode=READ)=0 |
| |
|
virtual bool | close ()=0 |
| |
|
virtual void | setOptions (const char *) |
| |
|
| enum | OpenMode { READ = 0
, WRITE
} |
| |
| static std::unique_ptr< ImageIO > | create (const std::string &filename, const char *opts=nullptr) |
| |
|
static std::unique_ptr< ImageIO > | create (const std::vector< uint8_t > &imageBuffer) |
| |
|
std::string | filename_ |
| |
ImageStbIO - Read/Write image data using the STB API.
◆ close()
| bool STK::ImageStbIO::close |
( |
| ) |
|
|
overridevirtual |
◆ load()
| bool STK::ImageStbIO::load |
( |
Image & |
img | ) |
|
|
overridevirtual |
◆ open()
| bool STK::ImageStbIO::open |
( |
OpenMode |
mode = READ | ) |
|
|
overridevirtual |
◆ readHeader()
| bool STK::ImageStbIO::readHeader |
( |
Image & |
img | ) |
|
|
overridevirtual |
◆ save()
| bool STK::ImageStbIO::save |
( |
const Image & |
img | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files:
- Native/SilentToolkit/StkImage/StkImageStbIO.h
- Native/SilentToolkit/StkImage/StkImageStbIO.cpp