This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
stretch_mode [2024/02/08 19:51] – justin | stretch_mode [2024/02/18 11:56] – justin | ||
---|---|---|---|
Line 1: | Line 1: | ||
======Stretch Mode====== | ======Stretch Mode====== | ||
---- | ---- | ||
- | The **stretch mode** is used to determine how an [[image]] is displayed within its bounding area. | + | The **stretch mode** is used to determine how an [[image]] is displayed within its bounding area. This setting is used in various places throughout RPG in a Box, e.g. the [[Display Image]] scripting function, [[image_element|image elements]] in [[widget|widgets]]. |
^Mode^Description^ | ^Mode^Description^ | ||
Line 10: | Line 10: | ||
|STRETCH_KEEP_ASPECT|The [[image]] is scaled up or down to fit the bounding area vertically, while being anchored at the top left of the bounding area and having its aspect ratio maintained.| | |STRETCH_KEEP_ASPECT|The [[image]] is scaled up or down to fit the bounding area vertically, while being anchored at the top left of the bounding area and having its aspect ratio maintained.| | ||
|STRETCH_KEEP_ASPECT_CENTERED|The [[image]] is scaled up or down to fit the bounding area vertically, while also being centered horizontally within the bounding area and having its aspect ratio maintained.| | |STRETCH_KEEP_ASPECT_CENTERED|The [[image]] is scaled up or down to fit the bounding area vertically, while also being centered horizontally within the bounding area and having its aspect ratio maintained.| | ||
- | |STRETCH_KEEP_ASPECT_COVERED|The [[image]] is scaled up or down (aspect ration maintained) to the extent that it completely covers the bounding area (i.e. no black bars on the sides or top/ | + | |STRETCH_KEEP_ASPECT_COVERED|The [[image]] is scaled up or down (aspect ration maintained) to the extent that it completely covers the bounding area (i.e. no transparent/ |
~~NOTOC~~ | ~~NOTOC~~ |