相片帧旋转
Bitmap旋转
fun Bitmap.rotate(angle: Int): Bitmap
ByteArray旋转
@IntDef(0, 90, 180, 270)
@Retention(AnnotationRetention.SOURCE)
annotation class RotationAngle
fun ByteArray.rotation(@RotationAngle angle: Int, width: Int, height: Int): ByteArray
fun Bitmap.rotate(angle: Int): Bitmap
@IntDef(0, 90, 180, 270)
@Retention(AnnotationRetention.SOURCE)
annotation class RotationAngle
fun ByteArray.rotation(@RotationAngle angle: Int, width: Int, height: Int): ByteArray