minimumPad static method

MinimumPad minimumPad()

Same as the Pad mode but only if the original image is smaller than the given minimum (width and height), in which case the image is scaled up to fill the given width and height while retaining the original aspect ratio and with all of the original image visible.

This mode doesn't scale down the image if your requested dimensions are smaller than the original image's.

returns MinimumPad object

Implementation

static MinimumPad minimumPad() {
  return MinimumPad();
}