Base abstract class for an image-path modification. More...
#include <image_modifications.hpp>
Classes | |
struct | imod_exception |
Exception thrown by the operator() when an error occurs. More... | |
Public Member Functions | |
virtual | ~modification () |
virtual void | operator() (surface &src) const =0 |
Applies the image-path modification on the specified surface. More... | |
virtual int | priority () const |
Specifies the priority of the modification. More... | |
Static Public Member Functions | |
static modification_queue | decode (const std::string &) |
Decodes modifications from a modification string. More... | |
Base abstract class for an image-path modification.
Definition at line 61 of file image_modifications.hpp.
|
inlinevirtual |
Definition at line 102 of file image_modifications.hpp.
|
static |
Decodes modifications from a modification string.
Decodes the modification string.
Important: It creates new objects which need to be deleted after use
encoded_mods | A string representing any number of modifications |
Definition at line 141 of file image_modifications.cpp.
References utils::parenthetical_split(), and image::modification_queue::push().
Referenced by BOOST_AUTO_TEST_CASE(), and image::load_image_sub_file().
|
pure virtual |
Applies the image-path modification on the specified surface.
Implemented in image::swap_modification, image::background_modification, image::bl_modification, image::blend_modification, image::cs_modification, image::o_modification, image::xbrz_modification, image::scale_modification, image::light_modification, image::mask_modification, image::blit_modification, image::crop_modification, image::adjust_channels_modification, image::adjust_alpha_modification, image::wipe_alpha_modification, image::plot_alpha_modification, image::negative_modification, image::sepia_modification, image::bw_modification, image::crop_transparency_modification, image::gs_modification, image::rotate_modification, image::fl_modification, and image::rc_modification.
|
inlinevirtual |
Specifies the priority of the modification.
Reimplemented in image::rc_modification.
Definition at line 108 of file image_modifications.hpp.