wxr
2020-06-15 b8e94316e41eba72d927d5ca7d931b26139ee8ff
Shared.IOS/UI/Camera.cs
@@ -42,7 +42,7 @@
                tempPhoto = rotateImage(tempPhoto);
                var width = tempPhoto.CGImage.Width;
                var height = tempPhoto.CGImage.Height;
                //System.Console.WriteLine("原宽度=" + width + "高度=" + height);
                //Shared.HDLUtils.WriteLine("原宽度=" + width + "高度=" + height);
                nfloat noScale = width / height;
                nfloat scale = 16.0f / 9.0f;
@@ -69,7 +69,7 @@
                // 关闭上下文
                //System.Console.WriteLine("改变后的宽度=" + newImage.Size.Width + "高度=" + newImage.Size.Height);
                //Shared.HDLUtils.WriteLine("改变后的宽度=" + newImage.Size.Width + "高度=" + newImage.Size.Height);
                string tempFilePath = System.IO.Path.Combine(Application.RootPath, _fileName);
                NSError err = null;
                float f = 0.1f;
@@ -89,7 +89,7 @@
                }
                else
                {
                    Console.WriteLine("保存图片失");
                    Shared.HDLUtils.WriteLine("保存图片失");
                }
                newImage.Dispose();
                _callback?.Invoke(tempFilePath);