Options
All
  • Public
  • Public/Protected
  • All
Menu

User image

Hierarchy

  • UserImage

Index

Constructors

constructor

  • Parameters

    Returns UserImage

Properties

bitmap

bitmap: BitmapData = undefined

Image bitmap data

cache

cache: boolean = false

Cache image in phaser cache

onLoadCompleted

onLoadCompleted: Signal = new Phaser.Signal()

Event that is called when loading is completed. First param passed is this, and the second param is success true|false

onRemoveCompleted

onRemoveCompleted: Signal = new Phaser.Signal()

Event that is called when remove is completed. First param passed is this, and the second param is success true|false

onSaveCompleted

onSaveCompleted: Signal = new Phaser.Signal()

Event that is called when saving is completed. First param passed is this, and the second param is success true|false

Accessors

fileInfo

  • Return file info for this image

    Returns IFileInfo

Methods

fromBase64

  • fromBase64(data: string, onCompleted?: Function): void
  • Creates image bitmap from base64 png

    Parameters

    • data: string

      base64 string of image

    • Optional onCompleted: Function

    Returns void

load

  • load(): void
  • Loads user image

    Returns void

remove

  • remove(): void
  • Remove image

    Returns void

removeFromCache

  • removeFromCache(): void
  • Remove image from Phaser cache

    Returns void

save

  • save(): void
  • Save image

    Returns void