xtd 0.2.0
resize_effect.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "effect.hpp"
6#include "../../color.hpp"
8
10namespace xtd {
12 namespace drawing {
15 namespace imaging {
17 namespace effects {
37
40 resize_effect() = default;
48 resize_effect(const xtd::drawing::rectangle& rectangle, bool auto_determine_fill_color);
63 resize_effect(const xtd::drawing::size& size, bool auto_determine_fill_color);
71
73
79 bool auto_determine_fill_color = false;
80
86
90
93 void size(const xtd::drawing::size& value);
95
96 protected:
98
103 void apply(xtd::drawing::image& image) const override;
105 };
106 }
107 }
108 }
109}
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:46
static const xtd::drawing::color transparent
Gets a system-defined color that has an ARGB value of 0x00000000. This field is constant.
Definition color.hpp:56
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.hpp:49
Contains xtd::drawing::color class.
Contains xtd::drawing::imaging::effects::effect struct.
The xtd::drawing::imaging::effects namespace provides functionality for adding effects to images.
Definition bitonal_effect.hpp:16
The xtd::drawing::imaging namespace provides advanced GDI+ imaging functionality. Basic graphics func...
Definition bitmap_data.hpp:15
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Represents the base class for all effects.
Definition effect.hpp:31
void apply(xtd::drawing::image &image) const override
Apply the effect.
resize_effect(const xtd::drawing::rectangle &rectangle, bool auto_determine_fill_color)
Initialise the new instance of xtd::drawing::imaging::resize with rectangle and auto determine fill c...
resize_effect(const xtd::drawing::size &size, bool auto_determine_fill_color)
Initialise the new instance of xtd::drawing::imaging::resize_effect with size and auto determine fill...
resize_effect()=default
Initialise the new instance of xtd::drawing::imaging::resize_effect object.
void size(const xtd::drawing::size &value)
Sets the new size.
xtd::drawing::color fill_color
Gets or sets the fill color. /.
Definition resize_effect.hpp:85
xtd::drawing::rectangle rectangle
Gets or sets the new rectangle.
Definition resize_effect.hpp:89
resize_effect(const xtd::drawing::rectangle &rectangle)
Initialise the new instance of xtd::drawing::imaging::resize with rectangle.
resize_effect(const xtd::drawing::size &size, const xtd::drawing::color &fill_color)
Initialise the new instance of xtd::drawing::imaging::resize_effect resize with size and fill color.
resize_effect(const xtd::drawing::size &size)
Initialise the new instance of xtd::drawing::imaging::resize_effect with size.
resize_effect(const xtd::drawing::rectangle &rectangle, const xtd::drawing::color &fill_color)
Initialise the new instance of xtd::drawing::imaging::resize with rectangle and fill color.
Stores a set of four integers that represent the location and size of a rectangle.
Definition rectangle.hpp:44
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:32
Contains xtd::drawing::system_colors factory.