xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.drawing
include
xtd
drawing
imaging
effects
crop_effect.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
effect.hpp
"
6
#include "
../../color.hpp
"
7
#include "
../../system_colors.hpp
"
8
10
namespace
xtd
{
12
namespace
drawing
{
15
namespace
imaging
{
17
namespace
effects
{
36
struct
crop_effect
:
effect
{
38
41
crop_effect
() =
default
;
44
explicit
crop_effect
(
const
xtd::drawing::rectangle
&
rectangle
);
48
explicit
crop_effect
(
const
xtd::drawing::size
&
size
);
50
52
56
xtd::drawing::rectangle
rectangle
;
57
60
auto
size
(
const
xtd::drawing::size
& value) -> void;
62
63
protected
:
65
70
auto
apply
(
xtd::drawing::image
&
image
)
const
->
void
override
;
72
};
73
}
74
}
75
}
76
}
xtd::drawing::image
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition
image.hpp:49
color.hpp
Contains xtd::drawing::color class.
effect.hpp
Contains xtd::drawing::imaging::effects::effect struct.
xtd::drawing::imaging::effects
The xtd::drawing::imaging::effects namespace provides functionality for adding effects to images.
Definition
bitonal_effect.hpp:16
xtd::drawing::imaging
The xtd::drawing::imaging namespace provides advanced GDI+ imaging functionality. Basic graphics func...
Definition
bitmap_data.hpp:15
xtd::drawing
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition
actions_system_images.hpp:10
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
xtd::drawing::imaging::effects::crop_effect::apply
auto apply(xtd::drawing::image &image) const -> void override
Apply the effect.
xtd::drawing::imaging::effects::crop_effect::crop_effect
crop_effect(const xtd::drawing::rectangle &rectangle)
Initialise the new instance of xtd::drawing::imaging::crop_effect with specified rectangle.
xtd::drawing::imaging::effects::crop_effect::crop_effect
crop_effect(const xtd::drawing::size &size)
Initialise the new instance of xtd::drawing::imaging::crop_effect with specified size.
xtd::drawing::imaging::effects::crop_effect::rectangle
xtd::drawing::rectangle rectangle
Gets or sets the new rectangle.
Definition
crop_effect.hpp:56
xtd::drawing::imaging::effects::crop_effect::size
auto size(const xtd::drawing::size &value) -> void
Sets the new size.
xtd::drawing::imaging::effects::crop_effect::crop_effect
crop_effect()=default
Initialise the new instance of xtd::drawing::imaging::crop_effect object.
xtd::drawing::imaging::effects::effect
Represents the base class for all effects.
Definition
effect.hpp:31
xtd::drawing::rectangle
Stores a set of four integers that represent the location and size of a rectangle.
Definition
rectangle.hpp:44
xtd::drawing::size
Stores an ordered pair of integers, which specify a height and width.
Definition
size.hpp:32
system_colors.hpp
Contains xtd::drawing::system_colors factory.
Generated on
for xtd by
Gammasoft
. All rights reserved.