Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v10 here: TYPO3 ELTS.
BOX
Prints a filled box.
Example
lib.example = IMAGE
lib.example {
file = GIFBUILDER
file {
# Rectangle with 100 pixel width and 50 pixel height
# in orange with opacity 50%
10 = BOX
10 {
dimensions = 0, 0, 100, 50
color = #ff8700
opacity = 50
}
}
}
Properties
align
align
-
- Type
- VHalign / stdWrap
- Default
- l, t
Pair of values, which defines the horizontal and vertical alignment of the box in the image.
Values:
Horizontal alignment:
- l
- left
- c
- center
- r
- right
Vertical alignment:
- t
- top
- c
- center
- b
- bottom
Example:
Horizontally centered, vertically at the bottom:
EXT:site_package/Configuration/TypoScript/setup.typoscriptalign = c, b
Copied!
color
color
-
- Type
- GraphicColor / stdWrap
- Default
- black
Fill color of the box.
dimensions
dimensions
opacity
opacity
-
- Type
- positive integer (1-100) / stdWrap
- Default
- 100
The degree to which the box conceals the background.
Mathematically speaking: Opacity = Transparency^-1, i.e. 100% opacity = 0% transparency.