24天前
@starch_ private fun toHorizontalMirror(bmp: Bitmap): Bitmap { val w = bmp.width val h = bmp.height val matrix = Matrix() matrix.postScale(-1f, 1f) // 水平镜像翻转 return Bitmap.createBitmap(bmp, 0, 0, w, h, matrix, true) }
35天前
1个月前
2个月前
2个月前