Fit modes, margins and rounded images
Figure 16. Content Fit and content margins arrange an Image or Video’s content inside its element.
| Fit | Useful when… |
|---|---|
| contain | The whole illustration, logo or portrait must remain visible. |
| cover | The region must be filled and cropping is acceptable. |
| stretch | The art is designed to tolerate changed proportions. |
| tile | A small repeating texture should repeat instead of stretching. |
Background Fit belongs to the backdrop. Content Fit belongs to supported media content. Set both intentionally when an element has a picture and a separate background.
Content margins leave room around an Image or Video. They can reveal the backdrop and protect a border. The rounded image renderer clips its image to the authored corner shape; that does not turn every surrounding child or input rectangle into a rounded object.
A decorative frame image can distort under stretch. The ordinary image fit choices are not a general nine-slice frame editor. Choose art made for the target proportions or use a color/border frame around a contained picture.
