xtd 0.2.0
contrast_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 contrast_effect() = default;
42 explicit contrast_effect(double percent);
44
46
51 double percent = 100.0;
53
54 protected:
56
61 void apply(xtd::drawing::image& image) const override;
63 };
64 }
65 }
66 }
67}
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.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
The xtd::drawing::imaging::effects::brightness_effect changes the contrast of the image with percent ...
Definition contrast_effect.hpp:34
double percent
Gets or sets the percent factor in %.
Definition contrast_effect.hpp:51
contrast_effect()=default
Initialise the new instance of xtd::drawing::imaging::contrast_effect object.
void apply(xtd::drawing::image &image) const override
Apply the effect.
contrast_effect(double percent)
Initialise the new instance of xtd::drawing::imaging::contrast_effect object with specified percent.
Represents the base class for all effects.
Definition effect.hpp:31