Sprite Img Src
constructor(nameWithExtension: String, spriteX: Int, spriteY: Int, spriteWidth: Int, spriteHeight: Int, tag: String = "")
constructor(nameWithExtension: String, spriteX: Short, spriteY: Short, spriteWidth: Short, spriteHeight: Short, tag: String = "")
Constrictor receiving png sprite image name
Parameters
name With Extension
the name of a png sprite image (with .png extension)
sprite X
the sub-image width in pixels, within the sprite
sprite Y
the sub-image height in pixels, within the sprite
sprite Width
the sub-image width in pixels, within the sprite
sprite Height
the sub-image height in pixels, within the sprite
constructor(data: ByteArray, iType: ImageType, spriteX: Int, spriteY: Int, spriteWidth: Int, spriteHeight: Int, tag: String = "")
Constrictor receiving image binary data
Parameters
data
the sprite png image binary data
i Type
the image type
sprite X
the sub-image width in pixels, within the sprite
sprite Y
the sub-image height in pixels, within the sprite
sprite Width
the sub-image width in pixels, within the sprite
sprite Height
the sub-image height in pixels, within the sprite