Samples corners and edge midpoints from bounds in bitmap.
Distinct sampled colors.
Bitmap to sample.
Pixel bounds to sample.