Skip to main content

SpriteOptions

Index

Properties

optionaldestSize

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

Image to create a sprite from

optionalsourceView

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