Color blending (BLEND) modification. More...
#include <image_modifications.hpp>
Public Member Functions | |
blend_modification (int r, int g, int b, float a) | |
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 |
float | get_a () 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_ |
float | a_ |
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 blending (BLEND) modification.
Definition at line 469 of file image_modifications.hpp.
Definition at line 472 of file image_modifications.hpp.
float image::blend_modification::get_a | ( | ) | const |
Definition at line 493 of file image_modifications.cpp.
References a_.
int image::blend_modification::get_b | ( | ) | const |
Definition at line 488 of file image_modifications.cpp.
References b_.
int image::blend_modification::get_g | ( | ) | const |
Definition at line 483 of file image_modifications.cpp.
int image::blend_modification::get_r | ( | ) | const |
Definition at line 478 of file image_modifications.cpp.
Applies the image-path modification on the specified surface.
Implements image::modification.
Definition at line 472 of file image_modifications.cpp.
References a_, b_, blend_surface(), and display::rgb().
|
private |
Definition at line 483 of file image_modifications.hpp.
|
private |
Definition at line 482 of file image_modifications.hpp.
|
private |
Definition at line 482 of file image_modifications.hpp.
|
private |
Definition at line 482 of file image_modifications.hpp.