Beispiel #1
0
 // Resize
 public static Image Crop(this Image source, Rectangle bounds)
 => PerformAction(source, image => ImageBaseOperations.Crop(image, bounds));
Beispiel #2
0
 // Resize
 public static Image Crop(this Image source, Rectangle bounds) => PerformAction(source, false, (sourceImage, targetImage) => ImageBaseOperations.Crop(sourceImage, targetImage, bounds));
Beispiel #3
0
 // Transform
 public static Image Transform(this Image source, RotationType rotate, FlippingType flip)
 => PerformAction(source, image => ImageBaseOperations.Transform(image, rotate, flip));
Beispiel #4
0
 // Transform
 public static Image Transform(this Image source, RotationType rotate, FlippingType flip)
 => PerformAction(source, false, (sourceImage, targetImage) => ImageBaseOperations.Transform(sourceImage, targetImage, rotate, flip));