title: Android Compose How to scale and rotate an image by dragging border?
body: <p>I'm trying to make a photo editor that can be scale, rotate and drag to any place.<br />
  But I want to control the <code>scale</code> and <code>rotate</code> behavior via the <code>corner rotate icon</code>
  not by the image itself.<br />
  I know it must to be using <code>pointerInput</code> from the modifier, but not sure how to implement it.<br />
  Can anybody help with that and give some example?</p>
  <p><a href="https://i.stack.imgur.com/2bpmg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2bpmg.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/jbScN.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jbScN.gif" alt="This is what I excepted sample" /></a></p>