crop

fun crop(x: Int, y: Int, width: Int, height: Int): Modifier

Crops the tile that contains this modifier. Crop takes an x,y position pair and the width+height that delimits the are that will be kept from the source tile. Everything else will be cropped.

Sources

(source)
Link copied to clipboard