clip

open fun clip(src: Bitmap, x: Int, y: Int, width: Int, height: Int): Bitmap

Return the clipped bitmap.

Return

the clipped bitmap

Parameters

src

The source of bitmap.

x

The x coordinate of the first pixel.

y

The y coordinate of the first pixel.

width

The width.

height

The height.

open fun clip(src: Bitmap, x: Int, y: Int, width: Int, height: Int, recycle: Boolean): Bitmap

Return the clipped bitmap.

Return

the clipped bitmap

Parameters

src

The source of bitmap.

x

The x coordinate of the first pixel.

y

The y coordinate of the first pixel.

width

The width.

height

The height.

recycle

True to recycle the source of bitmap, false otherwise.