Skip to content

Commit

Permalink
fix scale error for picture chooser on iPhone #29
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Baum committed Nov 10, 2015
1 parent a0f338b commit 98ebf0f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static UIImage ImageToFitSize(this UIImage image, CGSize fitSize)

var destRect = new CGRect(0, 0, (nfloat) scaledWidth, (nfloat) scaledHeight);

UIGraphics.BeginImageContextWithOptions(destRect.Size, false, 0);
UIGraphics.BeginImageContextWithOptions(destRect.Size, false, 1);
image.Draw(destRect);

var newImage = UIGraphics.GetImageFromCurrentImageContext();
Expand Down

0 comments on commit 98ebf0f

Please sign in to comment.