xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.drawing
include
xtd
drawing
imaging
effects
disabled_effect.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
effect.hpp
"
6
#include "
../../color.hpp
"
7
#include "
../../system_colors.hpp
"
8
10
namespace
xtd
{
12
namespace
drawing
{
15
namespace
imaging
{
17
namespace
effects
{
35
struct
disabled_effect
:
effect
{
37
40
disabled_effect
() =
default
;
43
explicit
disabled_effect
(
const
xtd::drawing::color
&
back_color
);
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
}
xtd::drawing::color
Represents an ARGB (alpha, red, green, blue) color.
Definition
color.hpp:52
xtd::drawing::image
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition
image.hpp:49
xtd::drawing::system_colors::control
static auto control() -> xtd::drawing::color
Gets a xtd::drawing::color structure that is the face color of a 3-D element.
color.hpp
Contains xtd::drawing::color class.
effect.hpp
Contains xtd::drawing::imaging::effects::effect struct.
xtd::drawing::imaging::effects
The xtd::drawing::imaging::effects namespace provides functionality for adding effects to images.
Definition
bitonal_effect.hpp:16
xtd::drawing::imaging
The xtd::drawing::imaging namespace provides advanced GDI+ imaging functionality. Basic graphics func...
Definition
bitmap_data.hpp:15
xtd::drawing
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition
actions_system_images.hpp:10
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
xtd::drawing::imaging::effects::disabled_effect::back_color
auto back_color(const xtd::drawing::color &value) -> void
Sets the background color.
xtd::drawing::imaging::effects::disabled_effect::apply
auto apply(xtd::drawing::image &image) const -> void override
Apply the effect.
xtd::drawing::imaging::effects::disabled_effect::disabled_effect
disabled_effect(const xtd::drawing::color &back_color)
Initialise the new instance of xtd::drawing::imaging::disabled_effect object with specified backgroun...
xtd::drawing::imaging::effects::disabled_effect::disabled_effect
disabled_effect(float brightness)
Initialise the new instance of xtd::drawing::imaging::disabled_effect object with specified brightnes...
xtd::drawing::imaging::effects::disabled_effect::disabled_effect
disabled_effect()=default
Initialise the new instance of xtd::drawing::imaging::disabled_effect object.
xtd::drawing::imaging::effects::disabled_effect::brightness
float brightness
Gets or sets the brightness.
Definition
disabled_effect.hpp:58
xtd::drawing::imaging::effects::effect
Represents the base class for all effects.
Definition
effect.hpp:31
system_colors.hpp
Contains xtd::drawing::system_colors factory.
Generated on
for xtd by
Gammasoft
. All rights reserved.