public PhotoCropperCanvasView(SKBitmap bitmap, float?aspectRatio = null)
        {
            this.bitmap = bitmap;

            SKRect bitmapRect = new SKRect(0, 0, bitmap.Width, bitmap.Height);

            croppingRect = new CroppingRectangle(bitmapRect, aspectRatio);

            touchEffect.TouchAction += OnTouchEffectTouchAction;
        }
Example #2
0
 public bool IsCroppedImageTooSmall()
 {
     return(CroppingRectangle.Width() < MIN_IMAGE_SIZE || CroppingRectangle.Height() < MIN_IMAGE_SIZE);
 }