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:
authorTiago Conceição <Tiago_caza@hotmail.com>2021-01-04 02:57:43 +0300
committerTiago Conceição <Tiago_caza@hotmail.com>2021-01-04 02:57:43 +0300
commitb36dce28a66472f5f1a4538b36de5f4d0f465447 (patch)
treeffbdd8a0b8674e36881a6fac2452126593bb27ec /UVtools.Core/Extensions/EmguExtensions.cs
parenta7d15a24d0179b06b64daf1be5f4e08c488cb930 (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.cs8
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>