| Canola
    0.8.D001
    | 
#include <png.h>
 
  
 | Public Member Functions | |
| virtual | ~image_format_png () | 
| Static Public Member Functions | |
| static pointer | create (const std::string &filename) | 
| static pointer | create_blank (int width, int height) | 
| Protected Member Functions | |
| const char * | type_name () const | 
| void | save_to_file (const std::string &filename) const | 
| Private Member Functions | |
| bool | calc_needs_alpha () const | 
| bool | calc_needs_rgb () const | 
| image_format_png () | |
| image_format_png (int width, int height, data_t *data) | |
| image_format_png (int width, int height) | |
| image_format_png (const image_format_png &) | |
| image_format_png & | operator= (const image_format_png &) | 
The image_format_png class is used to represent an image in PNG format.
| image_format_png::~image_format_png | ( | ) |  [virtual] | 
| image_format_png::image_format_png | ( | ) |  [private] | 
The default constructor. Do not use.
| image_format_png::image_format_png | ( | int | width, | 
| int | height, | ||
| data_t * | data | ||
| ) |  [private] | 
| image_format_png::image_format_png | ( | int | width, | 
| int | height | ||
| ) |  [private] | 
| image_format_png::image_format_png | ( | const image_format_png & | ) |  [private] | 
The copy constructor. Do not use.
| bool image_format_png::calc_needs_alpha | ( | void | ) | const  [private] | 
The calc_needs_alpha method is used by the save_to_file method to determine whether or not the alpha channel needs to be stored into the output file (i.e. if any pixel has an alpha != 255).
| bool image_format_png::calc_needs_rgb | ( | void | ) | const  [private] | 
The calc_needs_rgb method is used by the save_to_file method to determine whether or not the data is grayscale (r == b == b for all pixels). Completely transparent pixels are ignored.
| image::pointer image_format_png::create | ( | const std::string & | filename | ) |  [static] | 
| image::pointer image_format_png::create_blank | ( | int | width, | 
| int | height | ||
| ) |  [static] | 
| image_format_png& image_format_png::operator= | ( | const image_format_png & | ) |  [private] | 
The assignment operator. Do not use.
| void image_format_png::save_to_file | ( | const std::string & | filename | ) | const  [protected, virtual] | 
The save_to_file method is used to store the image data into a file on disk.
| filename | The name of the file to be written. | 
Reimplemented from image_format.
| const char * image_format_png::type_name | ( | ) | const  [protected, virtual] | 
 1.7.6.1
 1.7.6.1