limitFit static method

LimitFit limitFit()

Same as the Scale::fit mode but only if the original image is larger than the given limit (width and height), in which case the image is scaled down so that it takes up as much space as possible within a bounding box defined by the given width and height qualifiers. The original aspect ratio is retained and all of the original image is visible.

returns LimitFit

Implementation

static LimitFit limitFit() {
  return LimitFit();
}