setStretch
setStretch is a function commonly found in graphics or UI programming libraries that controls how an image or graphical element is scaled to fit a specific area. When an image is displayed within a container of a different size, setStretch determines the scaling behavior.
There are typically several modes for setStretch, each producing a different visual outcome. One common mode
A related mode, "aspectFill" or "crop," also maintains the aspect ratio but scales the image until both