std/image/resize/ResizeMethodenumjsscheller/scrilib
Variants
BestFit

Resize by enlarging or reducing - just enough to best fit the given size while preserving the aspect ratio.

IgnoreAspectRatio

This option forces the ratio to be ignored so the given size is matched exactly.

Fill

Resize based on the smallest fitting dimension. The resized image will completely fill (and even overflow) the given size.

Pad : ResizeMethodPad

Resize to fit within the given size and then add a border around the image to exactly match the given size.

Crop

Crop (cut out parts of the image) to exactly match the given size.