1 #ifndef NOOS_OBJECT_PICTURE 2 #define NOOS_OBJECT_PICTURE 6 #include "includes.ihh" 7 #include <noos/objects/globals.hpp> 21 picture(
const std::string filepath);
24 picture(std::ifstream & bytestream);
27 picture(
const std::vector<noos::types::byte> data);
42 std::vector<noos::types::byte>
bytearray()
const;
45 std::string
type()
const;
48 bool save(
const std::string filepath);
57 void opencb_(std::ifstream & bytestream);
60 std::vector<noos::types::byte> bytearray_;
bool operator!=(const picture &rhs) const
Not picture equality.
Definition: asio_handler.hpp:14
std::vector< noos::types::byte > bytearray() const
Get picture as array of bytes.
class which wraps around raw bytes of a picture
Definition: picture.hpp:17
bool save(const std::string filepath)
Save picture to filepath.
bool operator==(const picture &rhs) const
Picture equality.
picture & operator=(const picture &)=default
Assignment operator.
std::string type() const
Get image type (JPG/PNG supported)