public static ImageResizeParameters Fill(Rectangle sourceRectangle, int maxWidth, int maxHeight) { return new ImageResizeParameters(maxWidth, maxHeight, ImageResizeMode.Fill) { SourceRectangle = sourceRectangle }; } }