noos::object::picture Class Reference
class which wraps around raw bytes of a picture More...
#include <picture.hpp>
Public Member Functions | |
picture (const std::string filepath) | |
Construct from a file-path. | |
picture (std::ifstream &bytestream) | |
Construct using an open file stream. | |
picture (const std::vector< noos::types::byte > data) | |
Constructor using the raw bytes of a file. | |
picture (const picture &)=default | |
Copy constructor. | |
picture & operator= (const picture &)=default | |
Assignment operator. | |
bool operator== (const picture &rhs) const | |
Picture equality. | |
bool operator!= (const picture &rhs) const | |
Not picture equality. | |
std::vector< noos::types::byte > bytearray () const | |
Get picture as array of bytes. | |
std::string type () const | |
Get image type (JPG/PNG supported) | |
bool save (const std::string filepath) | |
Save picture to filepath. | |
Detailed Description
class which wraps around raw bytes of a picture
The documentation for this class was generated from the following file:
- noos/objects/picture.hpp