xtd 0.2.0
color_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 color_effect() = default;
45
47
52
55 double percent = 1.0;
57
58 protected:
60
65 void apply(xtd::drawing::image& image) const override;
67 };
68 }
69 }
70 }
71}
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:49
static const xtd::drawing::color white
Gets a system-defined color that has an ARGB value of 0xFFFFFFFF. This field is constant.
Definition color.hpp:473
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::color_effect adds or removes a color to the image with percent fa...
Definition color_effect.hpp:34
void apply(xtd::drawing::image &image) const override
Apply the effect.
color_effect(const xtd::drawing::color &color, double percent)
Initialise the new instance of xtd::drawing::imaging::color_effect object with specified color,...
color_effect()=default
Initialise the new instance of xtd::drawing::imaging::color_effect object.
double percent
Gets or sets the percent factor in %.
Definition color_effect.hpp:55
Represents the base class for all effects.
Definition effect.hpp:31