extract

fun <T : Bitmap> T.extract(x: Int, y: Int, width: Int, height: Int): T


fun <T : Bitmap> RectSlice<T>.extract(): T

Extract pixels in the same Bitmap format as the RectSlice.container, having into account RectSlice.padding and RectSlice.orientation