Paint.Stroke (gb.web.gui)

Static Sub Stroke ( [ Style As Variant, Preserve As Boolean ] )

Stroke the current path.

The path is stroke according to the current line width, line join, line cap, and dash settings.

Each sub-path is implicitly closed before being filled.

The path is stroked according to the Style argument, which can be:
  • An RGBA color integer.

  • A paintbrush ? brush.

  • A string value that represents the value of the strokeStyle property of the javascript canvas drawing context.

If the Style argument is not specified, then the paintbrush ? property is used.

After stroking, the current path will be cleared, unless the Preserve argument is set to TRUE.

See also