SpriteImgSrc
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
nameWithExtension
the name of a png sprite image (with .png extension)
spriteX
the sub-image width in pixels, within the sprite
spriteY
the sub-image height in pixels, within the sprite
spriteWidth
the sub-image width in pixels, within the sprite
spriteHeight
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
iType
the image type
spriteX
the sub-image width in pixels, within the sprite
spriteY
the sub-image height in pixels, within the sprite
spriteWidth
the sub-image width in pixels, within the sprite
spriteHeight
the sub-image height in pixels, within the sprite