From 8c5add2a1ca261471af15d630efa4dac63a1d038 Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Fri, 22 Nov 2019 10:02:37 -0800 Subject: [PATCH] Build in CI --- src/Media.Plugin/iOS/UIImageExtensions.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Media.Plugin/iOS/UIImageExtensions.cs b/src/Media.Plugin/iOS/UIImageExtensions.cs index 421d8526..40502701 100644 --- a/src/Media.Plugin/iOS/UIImageExtensions.cs +++ b/src/Media.Plugin/iOS/UIImageExtensions.cs @@ -30,7 +30,7 @@ public static UIImage ResizeImageWithAspectRatio(this UIImage imageSource, float imageSource?.Dispose(); CILanczosScaleTransform transform = null; - if(UIDevice.CurrentDevice.CheckSystemVersion(13, 0)) + /*if(UIDevice.CurrentDevice.CheckSystemVersion(13, 0)) { transform = new CILanczosScaleTransform { @@ -39,15 +39,15 @@ public static UIImage ResizeImageWithAspectRatio(this UIImage imageSource, float AspectRatio = 1.0f }; } - else + else*/ + //{ + transform = new CILanczosScaleTransform { - transform = new CILanczosScaleTransform - { - Scale = scale, - Image = sourceImage, - AspectRatio = 1.0f - }; - } + Scale = scale, + Image = sourceImage, + AspectRatio = 1.0f + }; + //} var output = transform.OutputImage; using var cgi = c.CreateCGImage(output, output.Extent);