ImageFit
How an image is resized to fit the requested width and height.
Values
CONTAINFit inside the box, preserving the aspect ratio. The result may be smaller than the box in one dimension.
COVERFill the whole box, preserving the aspect ratio and cropping what does not fit.
CROPLike
SCALE_DOWNfor small images; larger images are cropped to fill the box.PADFit inside the box, preserving the aspect ratio, and pad the rest of the box to its exact size.
SCALE_DOWNLike
CONTAIN, but never enlarge an image that is already smaller than the box.