Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.Core/PixelEditor/PixelText.cs')
-rw-r--r--UVtools.Core/PixelEditor/PixelText.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/UVtools.Core/PixelEditor/PixelText.cs b/UVtools.Core/PixelEditor/PixelText.cs
index beab7e6..5a420a9 100644
--- a/UVtools.Core/PixelEditor/PixelText.cs
+++ b/UVtools.Core/PixelEditor/PixelText.cs
@@ -19,6 +19,7 @@ namespace UVtools.Core.PixelEditor
private ushort _thickness = 1;
private string _text;
private bool _mirror;
+ private double _angle;
private byte _removePixelBrightness;
public override PixelOperationType OperationType => PixelOperationType.Text;
@@ -54,6 +55,12 @@ namespace UVtools.Core.PixelEditor
set => RaiseAndSetIfChanged(ref _mirror, value);
}
+ public double Angle
+ {
+ get => _angle;
+ set => RaiseAndSetIfChanged(ref _angle, value);
+ }
+
public byte RemovePixelBrightness
{
get => _removePixelBrightness;
@@ -74,13 +81,14 @@ namespace UVtools.Core.PixelEditor
public PixelText(){}
- public PixelText(uint layerIndex, Point location, LineType lineType, FontFace font, double fontScale, ushort thickness, string text, bool mirror, byte removePixelBrightness, byte pixelBrightness, bool isAdd) : base(layerIndex, location, lineType, pixelBrightness)
+ public PixelText(uint layerIndex, Point location, LineType lineType, FontFace font, double fontScale, ushort thickness, string text, bool mirror, double angle, byte removePixelBrightness, byte pixelBrightness, bool isAdd) : base(layerIndex, location, lineType, pixelBrightness)
{
_font = font;
_fontScale = fontScale;
_thickness = thickness;
_text = text;
_mirror = mirror;
+ _angle = angle;
IsAdd = isAdd;
_removePixelBrightness = removePixelBrightness;