class ffw::PngLoader

Class List > ffw :: PngLoader

Inherits the following classes: ffw::ImageReader

Public Functions

Type Name
PngLoader (const std::string & path)
PngLoader (const PngLoader & other) = delete
PngLoader (PngLoader && other)
void swap (PngLoader & other)
PngLoader & operator= (const PngLoader & other) = delete
PngLoader & operator= (PngLoader && other)
virtual ~PngLoader ()
virtual size_t readRow (void * dest) override
Reads a row of pixels.
virtual void close () override
Closes the file and frees the resources.

Public Functions Documentation

function PngLoader (1/3)

ffw::PngLoader::PngLoader (
    const std::string & path
)

function PngLoader (2/3)

ffw::PngLoader::PngLoader (
    const PngLoader & other
) = delete

function PngLoader (3/3)

ffw::PngLoader::PngLoader (
    PngLoader && other
)

function swap

void ffw::PngLoader::swap (
    PngLoader & other
)

function operator= (1/2)

PngLoader & ffw::PngLoader::operator= (
    const PngLoader & other
) = delete

function operator= (2/2)

PngLoader & ffw::PngLoader::operator= (
    PngLoader && other
)

function ~PngLoader

virtual ffw::PngLoader::~PngLoader ()

function readRow

virtual size_t ffw::PngLoader::readRow (
    void * dest
)

Reads a row of pixels.

Parameters:

  • dest The destination where to write the pixels

Note:

The dest parameter must be large enough to contain all pixels of a single row. Use reader->getStrideSize() to determine the size of the row in number of bytes.

See also:

Implements ImageReader::readRow

function close

virtual void ffw::PngLoader::close ()

Closes the file and frees the resources.

Implements ImageReader::close


The documentation for this class was generated from the following file: include/ffw/media/pngloader.h