Scaling modifications base class. More...
#include <image_modifications.hpp>

Public Member Functions | |
| scale_modification (int width, int height, std::string fn, bool use_nn) | |
| virtual surface | operator() (const surface &src) const |
| Applies the image-path modification on the specified surface. More... | |
| virtual std::pair< int, int > | calculate_size (const surface &src) const =0 |
| int | get_w () const |
| int | get_h () const |
Public Member Functions inherited from image::modification | |
| virtual | ~modification () |
| virtual int | priority () const |
| Specifies the priority of the modification. More... | |
Protected Attributes | |
| const std::string | fn_ |
Private Attributes | |
| int | w_ |
| int | h_ |
| bool | nn_ |
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... | |
Scaling modifications base class.
Definition at line 373 of file image_modifications.hpp.
|
inline |
Definition at line 376 of file image_modifications.hpp.
|
pure virtual |
Implemented in image::scale_into_modification, and image::scale_exact_modification.
| int image::scale_modification::get_h | ( | ) | const |
Definition at line 376 of file image_modifications.cpp.
References h_.
| int image::scale_modification::get_w | ( | ) | const |
Definition at line 371 of file image_modifications.cpp.
References w_.
Applies the image-path modification on the specified surface.
Implements image::modification.
Definition at line 360 of file image_modifications.cpp.
References scale_surface(), and scale_surface_sharp().
|
protected |
Definition at line 388 of file image_modifications.hpp.
|
private |
Definition at line 385 of file image_modifications.hpp.
|
private |
Definition at line 386 of file image_modifications.hpp.
|
private |
Definition at line 385 of file image_modifications.hpp.
1.8.8