6#include "../../color.hpp"
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:49
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.hpp:53
Contains xtd::drawing::imaging::effects::effect struct.
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
The xtd::drawing::imaging::effects::bitonal_effect converts image into lower and upper colors with th...
Definition bitonal_effect.hpp:34
color lower_color
Gets or sets the color used when RGB color is under or equal the threshold value.
Definition bitonal_effect.hpp:61
bitonal_effect(int32 threshold, color upper_color, color lower_color)
Initialise the new instance of xtd::drawing::imaging::bitonal_effect object with specified threshold,...
void apply(xtd::drawing::image &image) const override
Apply the effect.
bitonal_effect()=default
Initialise the new instance of xtd::drawing::imaging::bitonal_effect object.
int32 threshold
Gets or sets the threshold value (from 0 to 765).
Definition bitonal_effect.hpp:53
color upper_color
Gets or sets the color used when RGB color is upper the threshold value.
Definition bitonal_effect.hpp:57
Represents the base class for all effects.
Definition effect.hpp:31