Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
STK::ImagePngIO Class Reference

#include <StkImagePngIO.h>

Inheritance diagram for STK::ImagePngIO:
STK::ImageIO

Public Member Functions

 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
 
- Public Member Functions inherited from STK::ImageIO
 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 *)
 

Protected Attributes

FILE * fp_
 
- Protected Attributes inherited from STK::ImageIO
std::string filename_
 

Additional Inherited Members

- Public Types inherited from STK::ImageIO
enum  OpenMode { READ = 0 , WRITE }
 
- Static Public Member Functions inherited from STK::ImageIO
static std::unique_ptr< ImageIOcreate (const std::string &filename, const char *opts=nullptr)
 
static std::unique_ptr< ImageIOcreate (const std::vector< uint8_t > &imageBuffer)
 

Detailed Description

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

Member Function Documentation

◆ close()

bool ImagePngIO::close ( )
overridevirtual

Implements STK::ImageIO.

◆ load()

bool ImagePngIO::load ( Image img)
overridevirtual

Implements STK::ImageIO.

◆ open()

bool ImagePngIO::open ( OpenMode  mode = READ)
overridevirtual

Implements STK::ImageIO.

◆ readHeader()

bool ImagePngIO::readHeader ( Image img)
overridevirtual

Implements STK::ImageIO.

◆ save()

bool ImagePngIO::save ( const Image img)
overridevirtual

Implements STK::ImageIO.


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