ScreenLabelIconStyle
Description
- Derived from
Defines visual style properties for IScreenLabelIcon instances.
To modify the orientation of the icon image content before rendering, use Orientation. To transform the icon when rendering it to the screen, use Rotation, Scale and Offset.
Public / Attributes
ColorChannels
Specifies the color channel swizzle to use when rendering the icon image.
Defaults to (0,1,2,3).
- See also
Offset
Specifies the center of the render transformation (rotation and scaling).
The transformation center does not influence the label size that is computed by IScreenLabel.PrepareScreenLabel. Defaults to Vec2F.Zero.
Orientation
Sets the orientation of the icon image.
The orientation transform is applied to the icon image pixels (see IScreenLabelIcon.ContentIcon), which may flip the image dimensions but will otherwise not influence the positioning of the screen label, i.e. the behaviour is equivalent to using a pre-transformed icon image and then Transform.None.
None, Center, Vertical, Horizontal: +------------+ | | | | +------------+ Rotate, RotateInv, Diagonal, DiagonalInv: +------+ | | | | | | | | | | +------+
Defaults to Transform.None.
Rotation
Specifies the rotation angle to use for rendering the oriented icon image.
The rotation does not influence the label size that is computed by IScreenLabel.PrepareScreenLabel. Defaults to 0
.
- See also
Scale
Specifies the scale factor to use for rendering the oriented icon image.
The scaling does not influence the label size that is computed by IScreenLabel.PrepareScreenLabel. Defaults to 1
.
- See also