xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.drawing
include
xtd
drawing
imaging
effects
color_substitution_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_substitution_effect
:
effect
{
36
39
color_substitution_effect
() =
default
;
44
color_substitution_effect
(
int32
threshold
,
color
source_color
,
color
new_color
);
46
48
53
int32
threshold
= 0;
54
57
color
source_color
;
58
61
color
new_color
;
63
64
protected
:
66
71
auto
apply
(
xtd::drawing::image
&
image
)
const
->
void
override
;
73
};
74
}
75
}
76
}
77
}
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
color.hpp
Contains xtd::drawing::color class.
effect.hpp
Contains xtd::drawing::imaging::effects::effect struct.
xtd::int32
std::int32_t int32
Represents a 32-bit signed integer.
Definition
int32.hpp:25
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_substitution_effect::color_substitution_effect
color_substitution_effect(int32 threshold, color source_color, color new_color)
Initialise the new instance of xtd::drawing::imaging::color_substitution_effect object with specified...
xtd::drawing::imaging::effects::color_substitution_effect::color_substitution_effect
color_substitution_effect()=default
Initialise the new instance of xtd::drawing::imaging::color_substitution_effect object.
xtd::drawing::imaging::effects::color_substitution_effect::source_color
color source_color
Gets or sets the extraction color.
Definition
color_substitution_effect.hpp:57
xtd::drawing::imaging::effects::color_substitution_effect::threshold
int32 threshold
Gets or sets the threshold value (from 0 to 765).
Definition
color_substitution_effect.hpp:53
xtd::drawing::imaging::effects::color_substitution_effect::apply
auto apply(xtd::drawing::image &image) const -> void override
Apply the effect.
xtd::drawing::imaging::effects::color_substitution_effect::new_color
color new_color
Gets or sets the other pixels color.
Definition
color_substitution_effect.hpp:61
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.