相片帧旋转

Teamhelper Community2024-04-15 01:25:00

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
Last Updated 4/15/2024, 10:24:57 AM