Gets the brush style.

syntaxSyntax:
FWiz.GetBrushStyle(styleIndex)

Parameters

Parameter Description
styleIndex Index of the style. There are 10 styles available with indexes from 0 to 9.

Return Value

Returns a DlxBrushStyle object.

Example

  Copy codeCopy code
function OnBuild2DImage()
{
  var ctx = FWiz.Get2DImageCtx();
  var pen = FWiz.GetPenStyle(0);
  pen.SetStyle("Marker pen blue");
  ctx.SetPenStyle(pen);
  var brush = FWiz.GetBrushStyle(0);
  brush.SetStyle("Yellow");
  ctx.SetBrushStyle(brush);  
  var rect = new DlxRect(-50,-30,50,30);
  ctx.DrawRectangle(rect, 0, 50, 0, 0, 50);
}

See also