sampleEdges

fun sampleEdges(bitmap: Bitmap, bounds: Rect): List<Color>

Samples corners and edge midpoints from bounds in bitmap.

Return

Distinct sampled colors.

Parameters

bitmap

Bitmap to sample.

bounds

Pixel bounds to sample.