RAPP Platform API
Main Page
Packages
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
picture_example.cpp
Go to the documentation of this file.
1
#include "
objects/picture/picture.hpp
"
2
#include <memory>
6
int
main
(
int
argc,
char
* argv[])
7
{
8
if
(argc == 2)
9
{
10
std::string file(argv[1]);
11
// Open picture.
12
auto
pic =
rapp::object::picture
(file);
13
pic.save(
"copy_of_"
+file);
14
std::cout <<
"Picture is a "
<< pic.type() << std::endl;
15
}
16
return
0;
17
}
rapp::object::picture
class which wraps around raw bytes of a picture
Definition:
picture.hpp:13
picture.hpp
main
int main(int argc, char *argv[])
Definition:
picture_example.cpp:6
cpp
examples
picture_example.cpp
Generated on Fri Jul 29 2016 18:45:01 for RAPP Platform API by
1.8.6