#include <StkImagePngIO.h>
|
| ImagePngIO (std::string filename="") |
|
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 *) |
|
|
FILE * | fp_ |
|
std::string | filename_ |
|
|
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) |
|
ImagePngIO - Load and save PNG images. This class can be used to load and save Image objects in PNG format.
- Author
- Rune Aasgaard raa@m.nosp@m.ath..nosp@m.sinte.nosp@m.f.no
- See also
- Image
-
ImageIO
-
ImageJpegIO
◆ close()
bool ImagePngIO::close |
( |
| ) |
|
|
overridevirtual |
◆ load()
bool ImagePngIO::load |
( |
Image & |
img | ) |
|
|
overridevirtual |
◆ open()
bool ImagePngIO::open |
( |
OpenMode |
mode = READ | ) |
|
|
overridevirtual |
◆ readHeader()
bool ImagePngIO::readHeader |
( |
Image & |
img | ) |
|
|
overridevirtual |
◆ save()
bool ImagePngIO::save |
( |
const Image & |
img | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files:
- Native/SilentToolkit/StkImage/StkImagePngIO.h
- Native/SilentToolkit/StkImage/StkImagePngIO.cpp