limitPad static method

LimitPad limitPad()

Same as the Pad mode but only if the original image is larger than the given limit (width and height), in which case the image is scaled down 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 up the image if your requested dimensions are bigger than the original image's.

returns LimitPad object

Implementation

static LimitPad limitPad() {
  return LimitPad();
}