WebGraphics.Shadow

From Xojo Documentation

Revision as of 16:18, 11 August 2017 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Method

WebGraphics.Shadow(Size As Integer, Col As Color, OffsetX As Integer, OffsetY As Integer)

New in 2012r1

Supported for all project types and targets.

Renders shadows for all drawing commands that follow

  • Size: How much to blur the shadow
  • Col: Color of the shadow
  • OffsetX: How far to move the shadow to the right
  • OffsetY: How far to move the shadow downward

Example

Draws a blue rectangle with a red shadow:

g.Shadow(12, &cff0000, 3, 3)
g.ForeColor = &c0000ff
g.FillRect(10, 10, 100, 100)