1

I have an image editing application in android. I want to move and scale selected part of an image like this link .I am used this link.But it does not work for me. I do not want to move and scale the imageview and the entire image,only part of the image.ie, I want to scale and move the part of the image with in the white box.

How can i do this?

Community
  • 1
  • 1
Asha Soman
  • 199
  • 2
  • 3
  • 11

1 Answers1

0

For implementing pinch-to-zoom and moving feature read this article.

If you want have some "constant" part you can just create drawable with 100% alfa in the center and 50% alfa at edges (+white line if you want), and connect your "constant" image with "resizable" image in one RelativeLayout.

Jin35
  • 8,602
  • 3
  • 32
  • 52
  • What is meant by '100% alfa in the center and 50% alfa at edges'?Could you please show me an example.I have little knowledge with images. – Asha Soman Oct 09 '12 at 07:31
  • Just read this article: http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch There is an example of button, but you ned reverse variant - transparent center and non-transparent edges – Jin35 Oct 09 '12 at 09:10