SpriteImage

data class SpriteImage(val x: Int, val y: Int, val width: Int, val height: Int, val pixelRatio: Double)

Sub-rectangle of a sprite sheet for one icon, parsed from the sprite JSON metadata.

Constructors

Link copied to clipboard
constructor(x: Int, y: Int, width: Int, height: Int, pixelRatio: Double)

Properties

Link copied to clipboard
val height: Int

Sub-image height, px.

Link copied to clipboard

Sprite JSON pixelRatio (retina scale of the rect).

Link copied to clipboard
val width: Int

Sub-image width, px.

Link copied to clipboard
val x: Int

Left offset in the atlas, px.

Link copied to clipboard
val y: Int

Top offset in the atlas, px.