Canola
0.8.D001
|
#include <invert.h>
Public Member Functions | |
virtual | ~image_invert () |
Static Public Member Functions | |
static pointer | create (const image::pointer &deeper) |
Protected Member Functions | |
const char * | type_name (void) const |
void | get_pixel (int x, int y, icon_pixel &value) const |
void | set_pixel (int x, int y, const icon_pixel &value) |
unsigned | get_width (void) const |
unsigned | get_height (void) const |
void | save_to_file (const std::string &filename) const |
Private Member Functions | |
image_invert (const image::pointer &deeper) | |
image_invert () | |
image_invert (const image_invert &rhs) | |
image_invert & | operator= (const image_invert &rhs) |
Private Attributes | |
image::pointer | deeper |
The image_invert class is used to represent the processing required to invert the colours of an image, pixel by pixel.
image_invert::~image_invert | ( | ) | [virtual] |
image_invert::image_invert | ( | const image::pointer & | deeper | ) | [private] |
image_invert::image_invert | ( | ) | [private] |
The default constructor. It is private on purpose, use the create class method instead.
image_invert::image_invert | ( | const image_invert & | rhs | ) | [private] |
The copy constructor. Do not use.
rhs | The right hand side of the initialization. |
image_invert::pointer image_invert::create | ( | const image::pointer & | deeper | ) | [static] |
unsigned image_invert::get_height | ( | void | ) | const [protected, virtual] |
void image_invert::get_pixel | ( | int | x, |
int | y, | ||
icon_pixel & | value | ||
) | const [protected, virtual] |
unsigned image_invert::get_width | ( | void | ) | const [protected, virtual] |
image_invert& image_invert::operator= | ( | const image_invert & | rhs | ) | [private] |
The assignment operator. Do not use.
rhs | The right hand side of the assignment. |
void image_invert::save_to_file | ( | const std::string & | filename | ) | const [protected, virtual] |
void image_invert::set_pixel | ( | int | x, |
int | y, | ||
const icon_pixel & | value | ||
) | [protected, virtual] |
The set_pixel method may be used to set the value of the pixel at the given location. Transparency is ignored, the pixel becomes exactly as given; if you want transparentcy taken into account, use overlay_pixel. The pen_clr tracks the given value.
x | The X coordinate of the pixel to be set |
y | The Y coordinate of the pixel to be set |
value | The value of the pixel to be set. |
Implements image.
const char * image_invert::type_name | ( | void | ) | const [protected, virtual] |
image::pointer image_invert::deeper [private] |