setRegion

fun setRegion(left: Int, top: Int, right: Int, bottom: Int): Palette.Builder

Set a region of the bitmap to be used exclusively when calculating the palette.

This only works when the original input is a ImageBitmap.

Parameters

left

The left side of the rectangle used for the region.

top

The top of the rectangle used for the region.

right

The right side of the rectangle used for the region.

bottom

The bottom of the rectangle used for the region.