minimumFit static method

MinimumFit minimumFit()

Same as the Scale::fit mode but only if the original image is smaller than the given minimum (width and height), in which case the image is scaled up 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 MinimumFit

Implementation

static MinimumFit minimumFit() {
  return MinimumFit();
}