blob: 8c5754a849cd2088267a19c6d98f10ea80c331ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
|