From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Class (inherits from Object)

New in 2020r2

Adds a shadow to the object drawn.

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

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)


Desktop and iOS project types on all supported operating systems.

See Also

Graphics, LinearGradientBrush, PictureBrush, and RadialGradientBrush classes.