xtd 1.0.0
Loading...
Searching...
No Matches
disabled_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 disabled_effect() = default;
46 explicit disabled_effect(float brightness);
48
50
54 auto back_color(const xtd::drawing::color& value) -> void;
55
58 float brightness = system_colors::control().to_hsb().brightness;
60
61 protected:
63
68 auto apply(xtd::drawing::image& image) const -> void override;
70 };
71 }
72 }
73 }
74}
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:52
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.hpp:49
static auto control() -> xtd::drawing::color
Gets a xtd::drawing::color structure that is the face color of a 3-D element.
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
auto back_color(const xtd::drawing::color &value) -> void
Sets the background color.
auto apply(xtd::drawing::image &image) const -> void override
Apply the effect.
disabled_effect(const xtd::drawing::color &back_color)
Initialise the new instance of xtd::drawing::imaging::disabled_effect object with specified backgroun...
disabled_effect(float brightness)
Initialise the new instance of xtd::drawing::imaging::disabled_effect object with specified brightnes...
disabled_effect()=default
Initialise the new instance of xtd::drawing::imaging::disabled_effect object.
float brightness
Gets or sets the brightness.
Definition disabled_effect.hpp:58
Represents the base class for all effects.
Definition effect.hpp:31
Contains xtd::drawing::system_colors factory.