Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • TextureManager

Implements

Index

Constructors

constructor

  • Parameters

    • webAssemblyContext: TSciChart

    Returns TextureManager

Methods

createAxisMarkerTexture

  • createAxisMarkerTexture(axisAlignment: EAxisAlignment, text: string, fontStyle: string, fontWeight: string, fontSizePx: number, fontFamily: string, color: string, padding?: number, backgroundColor?: string, opacity?: number): TTextureObject
  • Parameters

    • axisAlignment: EAxisAlignment
    • text: string
    • fontStyle: string
    • fontWeight: string
    • fontSizePx: number
    • fontFamily: string
    • color: string
    • Default value padding: number = 0
    • Optional backgroundColor: string
    • Optional opacity: number

    Returns TTextureObject

createSimpleTextTexture

  • createSimpleTextTexture(text: string, textStyle: TTextStyle, backgroundColor?: string, displayVertically?: boolean, displayMirrored?: boolean, opacity?: number): { bitmapTexture: TSRTexture; textureHeight: number; textureWidth: number }
  • Parameters

    • text: string
    • textStyle: TTextStyle
    • Optional backgroundColor: string
    • Optional displayVertically: boolean
    • Optional displayMirrored: boolean
    • Optional opacity: number

    Returns { bitmapTexture: TSRTexture; textureHeight: number; textureWidth: number }

    • bitmapTexture: TSRTexture
    • textureHeight: number
    • textureWidth: number

createTextTexture

  • createTextTexture(text: string[], textStyle: TTextStyle, rotation?: number, lineSpacing?: number, backgroundColor?: string, opacity?: number): TTextureObject
  • Create a text texture supporting multiline and arbitrary rotation

    Parameters

    • text: string[]
    • textStyle: TTextStyle
    • Optional rotation: number
    • Optional lineSpacing: number

      Expressed as a fraction of the font size. Default 1.1

    • Optional backgroundColor: string
    • Optional opacity: number

    Returns TTextureObject

createTextureFromCtxBuffer

  • createTextureFromCtxBuffer(textureWidth: number, textureHeight: number): TTextureObject
  • Parameters

    • textureWidth: number
    • textureHeight: number

    Returns TTextureObject

createTextureFromImage

  • createTextureFromImage(image: HTMLImageElement, imageWidth: number, imageHeight: number): TTextureObject
  • Creates {@link TSRTexture} from image

    Parameters

    • image: HTMLImageElement

      The image

    • imageWidth: number

      The image width, not premultiplied value

    • imageHeight: number

      The image height, not premultiplied value

    Returns TTextureObject

createTextureFromImageData

  • createTextureFromImageData(imageData: ImageData, textureWidth: number, textureHeight: number): TTextureObject
  • Parameters

    • imageData: ImageData
    • textureWidth: number
    • textureHeight: number

    Returns TTextureObject

delete

  • delete(): void
  • Returns void

getTextureContext

  • getTextureContext(width: number, height: number): CanvasRenderingContext2D
  • Parameters

    • width: number
    • height: number

    Returns CanvasRenderingContext2D

Generated using TypeDoc