compressByScale

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

Return the compressed bitmap using scale.

Return

the compressed bitmap

Parameters

src

The source of bitmap.

newWidth

The new width.

newHeight

The new height.

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

Return the compressed bitmap using scale.

Return

the compressed 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 compressByScale(src: Bitmap, scaleWidth: Float, scaleHeight: Float): Bitmap

Return the compressed bitmap using scale.

Return

the compressed bitmap

Parameters

src

The source of bitmap.

scaleWidth

The scale of width.

scaleHeight

The scale of height.

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

Return the compressed bitmap using scale.

Return

he compressed 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.