Color blending (BLEND) modification. More...
#include <image_modifications.hpp>
Public Member Functions | |
| blend_modification (int r, int g, int b, float a) | |
| 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 |
| 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 557 of file image_modifications.hpp.
|
inline |
Definition at line 560 of file image_modifications.hpp.
|
inline |
Definition at line 568 of file image_modifications.hpp.
References a_.
|
inline |
Definition at line 567 of file image_modifications.hpp.
References b_.
|
inline |
Definition at line 566 of file image_modifications.hpp.
References g_.
|
inline |
Definition at line 565 of file image_modifications.hpp.
References r_.
|
overridevirtual |
Applies the image-path modification on the specified surface.
Implements image::modification.
Definition at line 518 of file image_modifications.cpp.
References a_, b_, blend_surface(), and src.
|
private |
Definition at line 572 of file image_modifications.hpp.
Referenced by get_a().
|
private |
Definition at line 571 of file image_modifications.hpp.
Referenced by get_b().
|
private |
Definition at line 571 of file image_modifications.hpp.
Referenced by get_g().
|
private |
Definition at line 571 of file image_modifications.hpp.
Referenced by get_r().