Skip to reading
GUI Styling, Shaders & Effects

Fit modes, margins and rounded images

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

Figure 16. Content Fit and content margins arrange an Image or Video’s content inside its element.

Source table from Fit modes, margins and rounded images, page 22
FitUseful when…
containThe whole illustration, logo or portrait must remain visible.
coverThe region must be filled and cropping is acceptable.
stretchThe art is designed to tolerate changed proportions.
tileA 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.

Page 22 of 70Permalink
Go to page