Color-shift (CS, R, G, B) modification. More...
#include <image_modifications.hpp>
Public Member Functions | |
cs_modification (int r, int g, int b) | |
virtual surface | operator() (const surface &src) const |
Applies the image-path modification on the specified surface. More... | |
int | get_r () const |
int | get_g () const |
int | get_b () const |
Public Member Functions inherited from image::modification | |
virtual | ~modification () |
virtual int | priority () const |
Specifies the priority of the modification. More... | |
Private Attributes | |
int | r_ |
int | g_ |
int | b_ |
Additional Inherited Members | |
Static Public Member Functions inherited from image::modification | |
static modification_queue | decode (const std::string &) |
Decodes modifications from a modification string. More... | |
Color-shift (CS, R, G, B) modification.
Definition at line 451 of file image_modifications.hpp.
Definition at line 454 of file image_modifications.hpp.
int image::cs_modification::get_b | ( | ) | const |
Definition at line 467 of file image_modifications.cpp.
References b_.
Referenced by BOOST_AUTO_TEST_CASE().
int image::cs_modification::get_g | ( | ) | const |
Definition at line 462 of file image_modifications.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
int image::cs_modification::get_r | ( | ) | const |
Definition at line 457 of file image_modifications.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
Applies the image-path modification on the specified surface.
Implements image::modification.
Definition at line 448 of file image_modifications.cpp.
References adjust_surface_color(), and b_.
|
private |
Definition at line 463 of file image_modifications.hpp.
|
private |
Definition at line 463 of file image_modifications.hpp.
|
private |
Definition at line 463 of file image_modifications.hpp.