scale

open fun scale(src: Bitmap, newWidth: Int, newHeight: Int): Bitmap

Return the scaled bitmap.

Return

the scaled bitmap

Parameters

src

The source of bitmap.

newWidth

The new width.

newHeight

The new height.

open fun scale(src: Bitmap, newWidth: Int, newHeight: Int, recycle: Boolean): Bitmap

Return the scaled bitmap.

Return

the scaled bitmap

Parameters

src

The source of bitmap.

newWidth

The new width.

newHeight

The new height.

recycle

True to recycle the source of bitmap, false otherwise.

open fun scale(src: Bitmap, scaleWidth: Float, scaleHeight: Float): Bitmap

Return the scaled bitmap

Return

the scaled bitmap

Parameters

src

The source of bitmap.

scaleWidth

The scale of width.

scaleHeight

The scale of height.

open fun scale(src: Bitmap, scaleWidth: Float, scaleHeight: Float, recycle: Boolean): Bitmap

Return the scaled bitmap

Return

the scaled bitmap

Parameters

src

The source of bitmap.

scaleWidth

The scale of width.

scaleHeight

The scale of height.

recycle

True to recycle the source of bitmap, false otherwise.