Rectangle
From Pointui
AVAILABLE SINCE: 2.0.28f
Draws a filled rectangle on the screen within the bounds of the control.
Methods
void SetFill()
Clears any previously set fill so no fill is drawn.
void SetFill(String hexColor)
Fills the Rectangle with the solid color specified.
void SetFill(String hexColor, int opacity)
Fills the Rectangle with the solid color blended at the opacity specified. The opacity must be a value between 0 (completely transparent) and 100 (opaque).
void SetVerticalGradient()
Clears any previously set vertical gradient.
void SetVerticalGradient(String startHexColor, String endHexColor)
void SetVerticalGradient(String startHexColor, int startOpacity, String endHexColor, int endOpacity)
Fills the Rectangle with a vertical gradient. The gradient can just specify the start and end colors and it will be drawn as a completely solid gradient. If startOpacity and endOpacity are specified then the opacity blend will also be applied.
void SetHorizontalGradient()
Clears any previously set horizontal gradient.
void SetHorizontalGradient(String startHexColor, String endHexColor)
void SetHorizontalGradient(String startHexColor, int startOpacity, String endHexColor, int endOpacity)
Fills the Rectangle with a horizontal gradient. The gradient can just specify the start and end colors and it will be drawn as a completely solid gradient. If startOpacity and endOpacity are specified then the opacity blend will also be applied. Please note that currently horizontal gradients with an opacity are slower to render than a solid color fill and vertical gradients.
