Class BaseTexture

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(source: HTMLImageElement): BaseTexture

Parameters

  • source: HTMLImageElement

Returns

BaseTexture

constructor(source: HTMLCanvasElement): BaseTexture

Parameters

  • source: HTMLCanvasElement

Returns

BaseTexture

Properties

public height: number

public source: string

public width: number

Methods

public addEventListener(type: string, listener: (event: PIXI.IEvent) => void): any

Parameters

  • type: string
  • listener: (event: PIXI.IEvent) => void

Returns

any

public destroy()

public dispatchEvent(event: IEvent): any

Parameters

Returns

any

public static fromImage(imageUrl: string, crossorigin?: boolean): BaseTexture

Parameters

  • imageUrl: string
  • crossorigin?: boolean optional

Returns

BaseTexture

public removeEventListener(type: string, listener: (event: PIXI.IEvent) => void): any

Parameters

  • type: string
  • listener: (event: PIXI.IEvent) => void

Returns

any