Scale & rotate Bitmap using Matrix in Android

前端 未结 8 1748
名媛妹妹
名媛妹妹 2020-12-12 19:26

I\'m trying to scale and rotate in single operation before creting the final bitmap but the preRotate, postConcat doesn\'t seem to work.

Bitmap bmp = ... ori         


        
8条回答
  •  孤城傲影
    2020-12-12 19:57

    Use matrix to scale area of original bitmap to 50% and compress bitmap until it's size < 200k Compress bitmap to a specific byte size in Android

提交回复
热议问题