xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.drawing
include
xtd
drawing
imaging
effects
color_effect.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
effect.hpp
"
6
#include "
../../color.hpp
"
7
9
namespace
xtd
{
11
namespace
drawing
{
14
namespace
imaging
{
16
namespace
effects
{
34
struct
color_effect
:
effect
{
36
39
color_effect
() =
default
;
43
color_effect
(
const
xtd::drawing::color
&
color
,
double
percent
);
45
47
51
xtd::drawing::color
color
=
color::white
;
52
55
double
percent
= 1.0;
57
58
protected
:
60
65
auto
apply
(
xtd::drawing::image
&
image
)
const
->
void
override
;
67
};
68
}
69
}
70
}
71
}
xtd::drawing::color
Represents an ARGB (alpha, red, green, blue) color.
Definition
color.hpp:52
xtd::drawing::color::white
static const xtd::drawing::color white
Gets a system-defined color that has an ARGB value of 0xFFFFFFFF. This field is constant.
Definition
color.hpp:476
xtd::drawing::image
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition
image.hpp:49
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::color_effect::color
xtd::drawing::color color
Gets or sets the color to add / remove.
Definition
color_effect.hpp:51
xtd::drawing::imaging::effects::color_effect::color_effect
color_effect(const xtd::drawing::color &color, double percent)
Initialise the new instance of xtd::drawing::imaging::color_effect object with specified color,...
xtd::drawing::imaging::effects::color_effect::color_effect
color_effect()=default
Initialise the new instance of xtd::drawing::imaging::color_effect object.
xtd::drawing::imaging::effects::color_effect::percent
double percent
Gets or sets the percent factor in %.
Definition
color_effect.hpp:55
xtd::drawing::imaging::effects::color_effect::apply
auto apply(xtd::drawing::image &image) const -> void override
Apply the effect.
xtd::drawing::imaging::effects::effect
Represents the base class for all effects.
Definition
effect.hpp:31
Generated on
for xtd by
Gammasoft
. All rights reserved.