class which wraps around raw bytes of a picture
More...
#include <picture.hpp>
class which wraps around raw bytes of a picture
- Version
- 3
- Date
- January 2016
- Author
- Alex Gkiokas a.gki.nosp@m.okas.nosp@m.@orte.nosp@m.lio..nosp@m.co.uk
Definition at line 13 of file picture.hpp.
rapp::object::picture::picture |
( |
const std::string |
filepath | ) |
|
Construct from a file-path.
Definition at line 18 of file picture.hpp.
rapp::object::picture::picture |
( |
std::ifstream & |
bytestream | ) |
|
Construct using an open file stream.
Definition at line 29 of file picture.hpp.
rapp::object::picture::picture |
( |
const picture & |
| ) |
|
|
default |
rapp::object::picture::picture |
( |
| ) |
|
|
privatedelete |
Get picture as array of bytes.
Definition at line 47 of file picture.hpp.
void rapp::object::picture::opencb_ |
( |
std::ifstream & |
bytestream | ) |
|
|
private |
bool rapp::object::picture::operator== |
( |
const picture & |
rhs | ) |
const |
bool rapp::object::picture::save |
( |
const std::string |
filepath | ) |
|
Save picture to filepath.
Definition at line 59 of file picture.hpp.
std::string rapp::object::picture::type |
( |
| ) |
const |
try and get image type (JPG/PNG supported)
Definition at line 53 of file picture.hpp.
std::string rapp::object::picture::imgtype_ |
|
private |
The documentation for this class was generated from the following file:
- /home/travis/rapp_temp/rapp-api/cpp/includes/objects/picture/picture.hpp