Options
All
  • Public
  • Public/Protected
  • All
Menu

Defines the interface to a Brush, used for drawing filled areas, polygons and rectangles on IRenderContext2D

Hierarchy

Implemented by

Index

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

getPenType

  • getPenType(): EDrawingTypes
  • Gets the type of the pen. 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