Scale into (SCALE_INTO) modification. More...
#include <image_modifications.hpp>

Public Member Functions | |
| scale_into_modification (int width, int height, std::string fn, bool use_nn) | |
| virtual std::pair< int, int > | calculate_size (const surface &src) const |
Public Member Functions inherited from image::scale_modification | |
| 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... | |
| 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... | |
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... | |
Protected Attributes inherited from image::scale_modification | |
| const std::string | fn_ |
Scale into (SCALE_INTO) modification.
(SCALE_INTO, SCALE_INTO_SHARP) Preserves aspect ratio.
Definition at line 407 of file image_modifications.hpp.
|
inline |
Definition at line 410 of file image_modifications.hpp.
|
virtual |
Implements image::scale_modification.
Definition at line 404 of file image_modifications.cpp.
References ERR_DP.
1.8.8