IDS peak ICV v1.3.0
Loading...
Searching...
No Matches
MirrorFeature.cs
Go to the documentation of this file.
2
4
22public class MirrorFeature : IFeature
23{
24 private readonly TransformationModule _module;
25
33 {
34 _module = module;
35 }
36
41 {
42 get => _module.MirrorLeftRight;
43 set => _module.MirrorLeftRight = value;
44 }
45
49 public bool IsUpDownEnabled
50 {
51 get => _module.MirrorUpDown;
52 set => _module.MirrorUpDown = value;
53 }
54
56 public bool IsEnabled
57 {
58 get => _module.IsMirrorEnabled;
59 set => _module.IsMirrorEnabled = value;
60 }
61
69 public void ResetToDefault()
70 {
71 _module.MirrorLeftRight = TransformationModule.DefaultMirrorLeftRight;
72 _module.MirrorUpDown = TransformationModule.DefaultMirrorUpDown;
73 }
74}
Mirror provides functionality to flip the image left-right or up-down.
bool IsEnabled
Enables or disables the feature.
void ResetToDefault()
Resets the mirroring to the default value.
MirrorFeature(TransformationModule module)
Creates a MirrorFeature for an existing transformation module.
bool IsLeftRightEnabled
Whether the image should be mirrored left-right.
bool IsUpDownEnabled
Whether the image should be mirrored up-down.
Transformation is an image pipeline module that provides mirror and rotation functionality.
Abstract base class for all image processing pipeline features.
Definition IFeature.cs:64