xtd 0.2.0
threshold_effect.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "effect.hpp"
6#include "../../color.hpp"
7
9namespace xtd {
11 namespace drawing {
14 namespace imaging {
16 namespace effects {
36
39 threshold_effect() = default;
45
47
54
55 protected:
57
62 void apply(xtd::drawing::image& image) const override;
64 };
65 }
66 }
67 }
68}
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
Represents the base class for all effects.
Definition effect.hpp:31
The xtd::drawing::imaging::effects::threshold_effect converts image into black and white colors with ...
Definition threshold_effect.hpp:34
threshold_effect(int32 threshold)
Initialise the new instance of xtd::drawing::imaging::threshold_effect object with specified threshol...
void apply(xtd::drawing::image &image) const override
Apply the effect.
threshold_effect()=default
Initialise the new instance of xtd::drawing::imaging::threshold_effect object.
int32 threshold
Gets or sets the threshold value (from 0 to 765).
Definition threshold_effect.hpp:52