compress By Scale
open fun compressByScale(src: Bitmap, newWidth: Int, newHeight: Int): Bitmap
Content copied to clipboard
Return the compressed bitmap using scale.
Return
the compressed bitmap
Parameters
src
The source of bitmap.
newWidth
The new width.
newHeight
The new height.
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
Content copied to clipboard
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.
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.