#include <photo_image.hpp>
Public Member Functions | |
size_t | getBytesPerPixel (void) |
char * | getDataAddress (void) |
int | getHeight (void) |
size_t | getImageSize (void) |
int | getWidth (void) |
photo_image (void) | |
bool | photo_image_read (std::string filename) |
void | photo_image_set_size (int image_width, int image_height, size_t image_bytes_per_pixel) |
bool | photo_image_write (std::string filename) |
~photo_image (void) | |
Private Attributes | |
size_t | bytes_per_pixel_ |
char * | data_ |
int | height_ |
size_t | image_size_ |
int | width_ |
Definition at line 40 of file photo_image.hpp.
photo_image::photo_image | ( | void | ) |
Definition at line 43 of file photo_image.cpp.
photo_image::~photo_image | ( | void | ) |
Definition at line 52 of file photo_image.cpp.
size_t photo_image::getBytesPerPixel | ( | void | ) |
Definition at line 68 of file photo_image.cpp.
char * photo_image::getDataAddress | ( | void | ) |
Definition at line 78 of file photo_image.cpp.
int photo_image::getHeight | ( | void | ) |
Definition at line 63 of file photo_image.cpp.
size_t photo_image::getImageSize | ( | void | ) |
Definition at line 73 of file photo_image.cpp.
int photo_image::getWidth | ( | void | ) |
Definition at line 58 of file photo_image.cpp.
bool photo_image::photo_image_read | ( | std::string | filename | ) |
Definition at line 97 of file photo_image.cpp.
void photo_image::photo_image_set_size | ( | int | image_width, |
int | image_height, | ||
size_t | image_bytes_per_pixel | ||
) |
Definition at line 84 of file photo_image.cpp.
bool photo_image::photo_image_write | ( | std::string | filename | ) |
Definition at line 143 of file photo_image.cpp.
size_t photo_image::bytes_per_pixel_ [private] |
Definition at line 46 of file photo_image.hpp.
char* photo_image::data_ [private] |
Definition at line 48 of file photo_image.hpp.
int photo_image::height_ [private] |
Definition at line 45 of file photo_image.hpp.
size_t photo_image::image_size_ [private] |
Definition at line 47 of file photo_image.hpp.
int photo_image::width_ [private] |
Definition at line 44 of file photo_image.hpp.