Options
All
  • Public
  • Public/Protected
  • All
Menu

Class representing static or animated texture

Hierarchy

Index

Constructors

Properties

animation: BitmapWrap[]
bitmap: BitmapWrap
delay: number
isAnimation: boolean
class: Class<UI.Texture>

Methods

  • clone(): any
  • draw(canvas: Canvas, x: number, y: number, scale: number): void
  • drawCutout(canvas: Canvas, cutout: RectF, x: number, y: number, scale: number): void
  • equals(param0: any): boolean
  • finalize(): void
  • fitAllToOneSize(): void
  • getBitmap(frame: number): Bitmap
  • Parameters

    • frame: number

      frame number

    Returns Bitmap

    [[android.graphics.Bitmap]] object containing animation frame for the corresponding frame number

  • getClass(): Class<any>
  • getFrame(): number
  • getHeight(): number
  • getWidth(): number
  • hashCode(): number
  • isAnimated(): boolean
  • notify(): void
  • notifyAll(): void
  • readOffset(obj: { x?: number; y?: number }): void
  • Sets texture offsets in pixels from the upper left bound of the bitmap

    Parameters

    • obj: { x?: number; y?: number }
      • Optional x?: number
      • Optional y?: number

    Returns void

  • release(): void
  • rescaleAll(scale: number): void
  • resizeAll(width: number, height: number): void
  • toString(): string
  • wait(): void
  • wait(param0: number): void
  • wait(param0: number, param1: number): void

Generated using TypeDoc