Adjust Alpha (ADJUST_ALPHA) modification. More...
#include <image_modifications.hpp>
Public Member Functions | |
adjust_alpha_modification (const std::string &formula) | |
virtual surface | operator() (const surface &src) const |
Applies the image-path modification on the specified surface. More... | |
![]() | |
virtual | ~modification () |
virtual int | priority () const |
Specifies the priority of the modification. More... | |
Private Attributes | |
std::string | formula_ |
Additional Inherited Members | |
![]() | |
static modification_queue | decode (const std::string &) |
Decodes modifications from a modification string. More... | |
Adjust Alpha (ADJUST_ALPHA) modification.
Definition at line 280 of file image_modifications.hpp.
|
inline |
Definition at line 283 of file image_modifications.hpp.
Applies the image-path modification on the specified surface.
Implements image::modification.
Definition at line 281 of file image_modifications.cpp.
References wfl::variant::as_int(), surface::clone(), wfl::formula::evaluate(), i, p, surface_locker< T >::pixels(), and PLAIN_LOG.
|
private |
Definition at line 290 of file image_modifications.hpp.