xtd 0.2.0
grayscale_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 grayscale_effect() = default;
42 explicit grayscale_effect(double percent);
44
46
51 double percent = 1.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:49
Contains xtd::drawing::color class.
Contains xtd::drawing::imaging::effects::effect struct.
The xtd::drawing::imaging::effects namespace provides functionality for adding effects to images.
Definition bitonal_effect.hpp:16
The xtd::drawing::imaging namespace provides advanced GDI+ imaging functionality. Basic graphics func...
Definition bitmap_data.hpp:15
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Represents the base class for all effects.
Definition effect.hpp:31
grayscale_effect(double percent)
Initialise the new instance of xtd::drawing::imaging::grayscale_effect object with specified percent.
void apply(xtd::drawing::image &image) const override
Apply the effect.
grayscale_effect()=default
Initialise the new instance of xtd::drawing::imaging::grayscale_effect object.
double percent
Gets or sets the percent factor in %.
Definition grayscale_effect.hpp:51