Example #1
0
        public static bool Resize(SKPixmap dst, SKPixmap src, SKBitmapResizeMethod method)
        {
            if (dst == null)
            {
                throw new ArgumentNullException(nameof(dst));
            }
            if (src == null)
            {
                throw new ArgumentNullException(nameof(src));
            }

            return(src.ScalePixels(dst, method.ToFilterQuality()));
        }
Example #2
0
 public static bool Resize(SKBitmap dst, SKBitmap src, SKBitmapResizeMethod method) =>
 src.ScalePixels(dst, method.ToFilterQuality());
Example #3
0
 public SKBitmap Resize(SKImageInfo info, SKBitmapResizeMethod method) =>
 Resize(info, method.ToFilterQuality());