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

Scale exact modification. More...

#include <image_modifications.hpp>

Inheritance diagram for image::scale_exact_modification:
Inheritance graph

Public Member Functions

 scale_exact_modification (int width, int height, std::string fn, bool use_nn)
 
virtual std::pair< int, intcalculate_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_
 

Detailed Description

Scale exact modification.

(SCALE, SCALE_SHARP)

Definition at line 394 of file image_modifications.hpp.

Constructor & Destructor Documentation

image::scale_exact_modification::scale_exact_modification ( int  width,
int  height,
std::string  fn,
bool  use_nn 
)
inline

Definition at line 397 of file image_modifications.hpp.

Member Function Documentation

std::pair< int, int > image::scale_exact_modification::calculate_size ( const surface src) const
virtual

Implements image::scale_modification.

Definition at line 381 of file image_modifications.cpp.

References ERR_DP.


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