The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
image::negative_modification Class Reference

Make an image negative (NEG) More...

#include <image_modifications.hpp>

Inheritance diagram for image::negative_modification:
Inheritance graph

Public Member Functions

 negative_modification (int r, int g, int b)
 
virtual surface operator() (const surface &src) const
 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...
 

Detailed Description

Make an image negative (NEG)

Definition at line 248 of file image_modifications.hpp.

Constructor & Destructor Documentation

image::negative_modification::negative_modification ( int  r,
int  g,
int  b 
)
inline

Definition at line 251 of file image_modifications.hpp.

Member Function Documentation

surface image::negative_modification::operator() ( const surface src) const
virtual

Applies the image-path modification on the specified surface.

Implements image::modification.

Definition at line 210 of file image_modifications.cpp.

References negative_image().

Member Data Documentation

int image::negative_modification::blue_
private

Definition at line 254 of file image_modifications.hpp.

int image::negative_modification::green_
private

Definition at line 254 of file image_modifications.hpp.

int image::negative_modification::red_
private

Definition at line 254 of file image_modifications.hpp.


The documentation for this class was generated from the following files: