xtd 0.2.0
scale_effect.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "effect.hpp"
6#include "../../color.hpp"
7#include "../../drawing_2d/interpolation_mode.hpp"
8
10namespace xtd {
12 namespace drawing {
15 namespace imaging {
17 namespace effects {
37
40 scale_effect() = default;
49
51
56
61
62 protected:
64
69 void apply(xtd::drawing::image& image) const override;
71 };
72 }
73 }
74 }
75}
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.hpp:53
Contains xtd::drawing::imaging::effects::effect struct.
interpolation_mode
The xtd::drawing::drawing_2d::interpolation_mode enumeration specifies the algorithm that is used whe...
Definition interpolation_mode.hpp:19
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Represents the base class for all effects.
Definition effect.hpp:31
The xtd::drawing::imaging::effects::scale_effect scales the image with new size.
Definition scale_effect.hpp:35
xtd::drawing::size size
Gets or sets the new size.
Definition scale_effect.hpp:55
xtd::drawing::drawing_2d::interpolation_mode interpolation_mode
Gets or sets the interpolation mode.
Definition scale_effect.hpp:59
scale_effect(const xtd::drawing::size &size, xtd::drawing::drawing_2d::interpolation_mode interpolation_mode)
Initialise the new instance of xtd::drawing::imaging::scale_effect object with specified percent.
scale_effect(const xtd::drawing::size &size)
Initialise the new instance of xtd::drawing::imaging::scale_effect object with specified percent.
scale_effect()=default
Initialise the new instance of xtd::drawing::imaging::scale_effect object.
void apply(xtd::drawing::image &image) const override
Apply the effect.
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:31