Color-shift (CS, R, G, B) modification. More...
#include <image_modifications.hpp>
Public Member Functions | |
| cs_modification (int r, int g, int b) | |
| virtual void | operator() (surface &src) const override |
| 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 538 of file image_modifications.hpp.
|
inline |
Definition at line 541 of file image_modifications.hpp.
|
inline |
Definition at line 548 of file image_modifications.hpp.
References b_.
|
inline |
Definition at line 547 of file image_modifications.hpp.
References g_.
|
inline |
Definition at line 546 of file image_modifications.hpp.
References r_.
|
overridevirtual |
Applies the image-path modification on the specified surface.
Implements image::modification.
Definition at line 511 of file image_modifications.cpp.
References adjust_surface_color(), b_, and src.
|
private |
Definition at line 551 of file image_modifications.hpp.
Referenced by get_b().
|
private |
Definition at line 551 of file image_modifications.hpp.
Referenced by get_g().
|
private |
Definition at line 551 of file image_modifications.hpp.
Referenced by get_r().