xtd 0.2.0
gamma_correction_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
45 gamma_correction_effect(double r, double g, double b);
47
49
54 double r = 1.0;
58 double g = 1.0;
62 double b = 1.0;
64
65 protected:
67
72 void apply(xtd::drawing::image& image) const override;
74 };
75 }
76 }
77 }
78}
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
Represents the base class for all effects.
Definition effect.hpp:31
The xtd::drawing::imaging::effects::gamma_correction_effect changes the gamma of the image with r,...
Definition gamma_correction_effect.hpp:34
double g
Gets or sets the green correction.
Definition gamma_correction_effect.hpp:58
gamma_correction_effect()=default
Initialise the new instance of xtd::drawing::imaging::gamma_correction_effect object.
double r
Gets or sets the red correction.
Definition gamma_correction_effect.hpp:54
double b
Gets or sets the blue correction.
Definition gamma_correction_effect.hpp:62
gamma_correction_effect(double r, double g, double b)
Initialise the new instance of xtd::drawing::imaging::gamma_correction_effect object with specified p...
void apply(xtd::drawing::image &image) const override
Apply the effect.