0

I want to apply rotation, drag and scaling on Image at same time. Image drag and Scaling works fine but as soon as I apply rotation Image quality lost. Please give me any example which have rotation, move and scaling on Image at same time and Image quality should not lost after applying transformation

Cœur
  • 37,241
  • 25
  • 195
  • 267
miral
  • 1
  • Just look into this [https://stackoverflow.com/questions/6578320/how-to-apply-zoom-drag-and-rotation-to-an-image-in-android](https://stackoverflow.com/questions/6578320/how-to-apply-zoom-drag-and-rotation-to-an-image-in-android), I hope it will help you – Anitha Jasmine G Oct 12 '17 at 04:00

1 Answers1

0

Look at MapsDemo in the Maps API extension. It implements a smoothed canvas in order to rotate maps. They do this by turning on filtering in the Paint used to draw the image.

private final Paint mSmooth = new Paint(Paint.FILTER_BITMAP_FLAG);

Some quality will always be lost in rotation because the mapping from source to destination pixels can be perfect only at the 90 degree points.

BTW, instead of drag I think you mean translation.

Gene
  • 46,253
  • 4
  • 58
  • 96