Options
All
  • Public
  • Public/Protected
  • All
Menu

The WebGLBrush is a brush for polygon fills, rectangle fills, which can be passed to SciChart's WebGL / WebAssembly graphics engine

Hierarchy

Implements

Index

Constructors

Accessors

Methods

Constructors

constructor

  • new WebGlBrush(scrtBrush: SCRTBrush): WebGlBrush
  • Creates an instance of WebGlBrush

    Parameters

    • scrtBrush: SCRTBrush

      the inner {@link SCRTBrush} which can be passed to SciChart's WebAssembly WebGL engine

    Returns WebGlBrush

Accessors

scrtBrush

  • get scrtBrush(): SCRTBrush
  • Get the inner {@link SCRTBrush} which can be passed to SciChart's WebAssembly WebGL engine

    Returns SCRTBrush

Methods

delete

  • delete(): void
  • Deletes native (WebAssembly) memory used by this type, after which it cannot be used.

    remarks

    Call .delete() before finishing with the object to ensure that WebAssmembly memory leaks do not occur.

    All elements within SciChart's High Performance Realtime JavaScript Charts which implement IDeletable must be deleted manually to free native (WebAssembly) memory

    Returns void

getBrushType

  • getBrushType(): EDrawingTypes
  • Gets the type of the brush. See {@link EDrawingTypes} for list of values

    Returns EDrawingTypes

setOpacity

  • setOpacity(opacity: number): void
  • Allows setting an opacity override for the pen. This will be applied the next time the pen is used to draw

    Parameters

    • opacity: number

      An opacity number from 0..1

    Returns void

Generated using TypeDoc