Make an image negative (NEG) More...
#include <image_modifications.hpp>
Public Member Functions | |
negative_modification (int r, int g, int b) | |
virtual void | operator() (surface &src) const override |
Applies the image-path modification on the specified surface. More... | |
Public Member Functions inherited from image::modification | |
virtual | ~modification () |
virtual int | priority () const |
Specifies the priority of the modification. More... | |
Private Attributes | |
int | red_ |
int | green_ |
int | blue_ |
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... | |
Make an image negative (NEG)
Definition at line 259 of file image_modifications.hpp.
|
inline |
Definition at line 262 of file image_modifications.hpp.
|
overridevirtual |
Applies the image-path modification on the specified surface.
Implements image::modification.
Definition at line 227 of file image_modifications.cpp.
References negative_image(), and src.
|
private |
Definition at line 265 of file image_modifications.hpp.
|
private |
Definition at line 265 of file image_modifications.hpp.
|
private |
Definition at line 265 of file image_modifications.hpp.