| | |
| | | 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; |
| | |
| | | |
| | | |
| | | // 关闭上下文 |
| | | //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; |
| | |
| | | } |
| | | else |
| | | { |
| | | Console.WriteLine("保存图片失"); |
| | | Shared.HDLUtils.WriteLine("保存图片失"); |
| | | } |
| | | newImage.Dispose(); |
| | | _callback?.Invoke(tempFilePath); |