Scaling modifications base class. More...
#include <image_modifications.hpp>
Public Member Functions | |
scale_modification (int width, int height, const 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 |
![]() | |
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 modification_queue | decode (const std::string &) |
Decodes modifications from a modification string. More... | |
Scaling modifications base class.
Definition at line 432 of file image_modifications.hpp.
|
inline |
Definition at line 435 of file image_modifications.hpp.
|
pure virtual |
Implemented in image::scale_into_modification, and image::scale_exact_modification.
|
inline |
Definition at line 446 of file image_modifications.hpp.
References h_.
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 441 of file image_modifications.hpp.
References w_.
Referenced by BOOST_AUTO_TEST_CASE().
Applies the image-path modification on the specified surface.
Implements image::modification.
Definition at line 465 of file image_modifications.cpp.
References scale_surface_legacy(), and scale_surface_sharp().
|
protected |
Definition at line 456 of file image_modifications.hpp.
|
private |
Definition at line 452 of file image_modifications.hpp.
Referenced by get_h().
|
private |
Definition at line 453 of file image_modifications.hpp.
|
private |
Definition at line 452 of file image_modifications.hpp.
Referenced by get_w().