class ffw::BmpLoader

Class List > ffw :: BmpLoader

Inherits the following classes: ffw::ImageReader

Public Functions

Type Name
BmpLoader (const std::string & path)
BmpLoader (const BmpLoader & other) = delete
BmpLoader (BmpLoader && other)
void swap (BmpLoader & other)
BmpLoader & operator= (const BmpLoader & other) = delete
BmpLoader & operator= (BmpLoader && other)
virtual ~BmpLoader ()
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 BmpLoader (1/3)

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

function BmpLoader (2/3)

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

function BmpLoader (3/3)

ffw::BmpLoader::BmpLoader (
    BmpLoader && other
)

function swap

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

function operator= (1/2)

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

function operator= (2/2)

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

function ~BmpLoader

virtual ffw::BmpLoader::~BmpLoader ()

function readRow

virtual size_t ffw::BmpLoader::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::BmpLoader::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/bmploader.h