Public Member Functions | Private Attributes | List of all members
photo_image Class Reference

#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 (const std::string &filename)
 
void photo_image_set_size (int image_width, int image_height, size_t image_bytes_per_pixel)
 
bool photo_image_write (const std::string &filename)
 
 ~photo_image (void)
 

Private Attributes

size_t bytes_per_pixel_
 
char * data_
 
int height_
 
size_t image_size_
 
int width_
 

Detailed Description

Definition at line 40 of file photo_image.hpp.

Constructor & Destructor Documentation

◆ photo_image()

photo_image::photo_image ( void  )

Definition at line 43 of file photo_image.cpp.

◆ ~photo_image()

photo_image::~photo_image ( void  )

Definition at line 52 of file photo_image.cpp.

Member Function Documentation

◆ getBytesPerPixel()

size_t photo_image::getBytesPerPixel ( void  )

Definition at line 68 of file photo_image.cpp.

◆ getDataAddress()

char * photo_image::getDataAddress ( void  )

Definition at line 78 of file photo_image.cpp.

◆ getHeight()

int photo_image::getHeight ( void  )

Definition at line 63 of file photo_image.cpp.

◆ getImageSize()

size_t photo_image::getImageSize ( void  )

Definition at line 73 of file photo_image.cpp.

◆ getWidth()

int photo_image::getWidth ( void  )

Definition at line 58 of file photo_image.cpp.

◆ photo_image_read()

bool photo_image::photo_image_read ( const std::string filename)

Definition at line 97 of file photo_image.cpp.

◆ photo_image_set_size()

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.

◆ photo_image_write()

bool photo_image::photo_image_write ( const std::string filename)

Definition at line 143 of file photo_image.cpp.

Member Data Documentation

◆ bytes_per_pixel_

size_t photo_image::bytes_per_pixel_
private

Definition at line 46 of file photo_image.hpp.

◆ data_

char* photo_image::data_
private

Definition at line 48 of file photo_image.hpp.

◆ height_

int photo_image::height_
private

Definition at line 45 of file photo_image.hpp.

◆ image_size_

size_t photo_image::image_size_
private

Definition at line 47 of file photo_image.hpp.

◆ width_

int photo_image::width_
private

Definition at line 44 of file photo_image.hpp.


The documentation for this class was generated from the following files:


photo
Author(s): Benjamin Pitzer
autogenerated on Mon Feb 28 2022 23:12:30