Hierarchy

  • SpriteOptions

Properties

destSize?: {
    height: number;
    width: number;
}

By default the size of the final sprite is the size of the ImageSource

Type declaration

  • height: number
  • width: number

Image to create a sprite from

sourceView?: {
    height: number;
    width: number;
    x: number;
    y: number;
}

By default the source is the entire dimension of the ImageSource

Type declaration

  • height: number
  • width: number
  • x: number
  • y: number