ShadowBrush

From Xojo Documentation

Class (inherits from Object)


New in 2020r2

Adds a shadow to the object drawn.

Properties
BlurAmount fa-lock-32.png OffSet fa-lock-32.png ShadowColor fa-lock-32.png
Constructors

Constructor(offsetX As Integer = 10, offsetY As Integer = 10, shadow As Color = &c000000, blur As Double = 3.0)



Sample Code

This example draws a rectangle with a shadow in the Paint event of a Canvas:

g.ShadowBrush = New ShadowBrush
g.DrawingColor = Color.Red
g.FillRectangle(0, 0, 100, 100)

Compatibility

Desktop and iOS project types on all supported operating systems.

See Also

Graphics, LinearGradientBrush, PictureBrush, and RadialGradientBrush classes.