Skip to content

Commit

Permalink
Build in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontemagno committed Nov 22, 2019
1 parent e0e7caf commit 8c5add2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/Media.Plugin/iOS/UIImageExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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);
Expand Down

0 comments on commit 8c5add2

Please sign in to comment.