Options
All
  • Public
  • Public/Protected
  • All
Menu

Object used to manipulate frame textures. Frame texture allows to

Hierarchy

  • Object
    • FrameTexture

Index

Constructors

Properties

CORNER_BOTTOM_LEFT: number

Specifies bottom left corner of the frame

CORNER_BOTTOM_RIGHT: number

Specifies bottom right corner of the frame

CORNER_TOP_LEFT: number

Specifies top left corner of the frame

CORNER_TOP_RIGHT: number

Specifies top right corner of the frame

SIDE_BOTTOM: number

Specifies bottom side of the frame

SIDE_LEFT: number

Specifies left side of the frame

SIDE_RIGHT: number

Specifies right side of the frame

SIDE_TOP: number

Specifies top side of the frame

class: Class<FrameTexture>

Methods

  • clone(): any
  • draw(canvas: Canvas, rect: RectF, scale: number, color: number, sides: [boolean, boolean, boolean, boolean]): void
  • Parameters

    • canvas: Canvas
    • rect: RectF
    • scale: number
    • color: number
    • sides: [boolean, boolean, boolean, boolean]

    Returns void

  • equals(param0: any): boolean
  • Parameters

    • param0: any

    Returns boolean

  • expand(width: number, height: number, color: number, sides: [boolean, boolean, boolean, boolean]): Bitmap
  • expand(width: number, height: number, color: number): Bitmap
  • Expands texture to the specified side, filling the middle with specified color

    Parameters

    • width: number
    • height: number
    • color: number

      integer color value produced by [[android.graphics.Color]] class

    • sides: [boolean, boolean, boolean, boolean]

      array of booleans marking whether the side should be expanded or not. The order of the sides is FrameTexture.SIDE_LEFT, FrameTexture.SIDE_RIGHT, FrameTexture.SIDE_UP, FrameTexture.SIDE_DOWN

    Returns Bitmap

    expanded [[android.graphics.Bitmap]] instance with the frame

  • Parameters

    • width: number
    • height: number
    • color: number

    Returns Bitmap

  • expandAndScale(width: number, height: number, scale: number, color: number, sides: [boolean, boolean, boolean, boolean]): Bitmap
  • expandAndScale(width: number, height: number, scale: number, color: number): Bitmap
  • Expands texture to the specified side, filling the middle with specified color

    Parameters

    • width: number
    • height: number
    • scale: number

      scale of the created bitmap

    • color: number

      integer color value produced by [[android.graphics.Color]] class

    • sides: [boolean, boolean, boolean, boolean]

      array of booleans marking whether the side should be expanded or not. See FrameTexture.expand parameters for details. Default behavior is to scale all sides

    Returns Bitmap

    expanded and scaled [[android.graphics.Bitmap]] instance with

  • Parameters

    • width: number
    • height: number
    • scale: number
    • color: number

    Returns Bitmap

  • expandSide(sideId: number, pixels: number): Bitmap
  • Expands side of the texture by specified amount of pixels

    Parameters

    • sideId: number

      side of the texture, one of the FrameTexture.SIDE_LEFT, FrameTexture.SIDE_RIGHT, FrameTexture.SIDE_UP, FrameTexture.SIDE_DOWN constants

    • pixels: number

    Returns Bitmap

    expanded [[android.graphics.Bitmap]] instance with the frame

  • finalize(): void
  • getCentralColor(): number
  • Returns number

    [[android.graphics.Color]] integer color value of the central pixel of the source texture

  • getClass(): Class<any>
  • getSideSource(side: number): Bitmap
  • Parameters

    • side: number

      side of the texture, one of the FrameTexture.SIDE_LEFT, FrameTexture.SIDE_RIGHT, FrameTexture.SIDE_UP, FrameTexture.SIDE_DOWN constants

    Returns Bitmap

    texture side source extracted from the original frame texture source stored in [[android.graphics.Bitmap]] instance

  • getSource(): Bitmap
  • Returns Bitmap

    original frame texture source stored in [[android.graphics.Bitmap]] instance

  • hashCode(): number
  • notify(): void
  • notifyAll(): void
  • toString(): string
  • wait(): void
  • wait(param0: number): void
  • wait(param0: number, param1: number): void
  • Returns void

  • Parameters

    • param0: number

    Returns void

  • Parameters

    • param0: number
    • param1: number

    Returns void

Generated using TypeDoc