diff options
author | Tiago Conceição <Tiago_caza@hotmail.com> | 2021-01-04 02:57:43 +0300 |
---|---|---|
committer | Tiago Conceição <Tiago_caza@hotmail.com> | 2021-01-04 02:57:43 +0300 |
commit | b36dce28a66472f5f1a4538b36de5f4d0f465447 (patch) | |
tree | ffbdd8a0b8674e36881a6fac2452126593bb27ec /UVtools.Core/Extensions/EmguExtensions.cs | |
parent | a7d15a24d0179b06b64daf1be5f4e08c488cb930 (diff) |
v2.1.2v2.1.2
* (Add) Pixel editor - Text: Preview of text operation (#120)
* (Add) Calibration - Elephant Foot: 'Part scale' factor to scale up test parts
* (Change) Allow tools text descriptions to be selectable and copied
* (Fix) Pixel editor - Text: Round font scale to avoid precision error
Diffstat (limited to 'UVtools.Core/Extensions/EmguExtensions.cs')
-rw-r--r-- | UVtools.Core/Extensions/EmguExtensions.cs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/UVtools.Core/Extensions/EmguExtensions.cs b/UVtools.Core/Extensions/EmguExtensions.cs index 42db640..1e46e99 100644 --- a/UVtools.Core/Extensions/EmguExtensions.cs +++ b/UVtools.Core/Extensions/EmguExtensions.cs @@ -81,11 +81,9 @@ namespace UVtools.Core.Extensions { var halfWidth = src.Width / 2.0f; var halfHeight = src.Height / 2.0f; - using (var translateTransform = new Matrix<double>(2, 3)) - { - CvInvoke.GetRotationMatrix2D(new PointF(halfWidth, halfHeight), -angle, 1.0, translateTransform); - CvInvoke.WarpAffine(src, src, translateTransform, src.Size); - } + using var translateTransform = new Matrix<double>(2, 3); + CvInvoke.GetRotationMatrix2D(new PointF(halfWidth, halfHeight), -angle, 1.0, translateTransform); + CvInvoke.WarpAffine(src, src, translateTransform, src.Size); } /// <summary> |