diff options
Diffstat (limited to 'img_handler.hpp')
-rw-r--r-- | img_handler.hpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/img_handler.hpp b/img_handler.hpp new file mode 100644 index 0000000..8c5754a --- /dev/null +++ b/img_handler.hpp @@ -0,0 +1,26 @@ +#ifndef IMG_HANDLER_HPP_SENTRY +#define IMG_HANDLER_HPP_SENTRY + +#include <string> + +enum { + width = 300, + height = 300 +}; + +class ImageHandler { + int channel; + int in_width; + int in_height; + std::string path_to_file; + std::string path_to_save; + unsigned char *img_data; + unsigned char *resized_data; +public: + ImageHandler(const char *p); + void load_img(); + void resize_img(); + void save_img(); +}; + +#endif |