Optionalbackground?: neverOnly with fit: 'contain'
Optionalfit?: "fill" | "inside"'fill' stretches to the exact size; 'inside' keeps the aspect ratio and makes the image as large as fits
inside it, so one side can be smaller
Optionalheight?: numberThe new height. Without it, it follows from the width
Optionalwidth?: numberThe new width. Without it, it follows from the height
Optionalbackground?: ColorFor 'contain', the color of the bars
Keeps the aspect ratio and pads to the exact box
The exact height of the box
The exact width of the box
Optionalbackground?: neverOnly with fit: 'contain'
Keeps the aspect ratio and crops to the exact box
The exact height of the box
The exact width of the box
The size for Image.resize, Frame.resize and Animation.resize, and how to resize: a side that is missing follows from the other one, keeping the aspect ratio