2

I have back side TouchImageview, which having zoom in/out functionality, I am setting up bitmap on ImageView, the size of Bitmap is w-h (2100 x 2900), I have particular X-Y co-ordinate, now I want to add Overlay view at same co-ordinate as per imageview's X-Y co-ordinate, the background imageview should be touchable.

Can you please let me know solution for the same.

Thank you.

enter image description here

Hiren Patel
  • 52,124
  • 21
  • 173
  • 151
  • To make the transparency circle through the ImageView looks like it requires use of the canvas. You can make it wherever you want: http://stackoverflow.com/questions/5368774/make-certain-area-of-bitmap-transparent-on-touch – CmosBattery Jan 12 '16 at 06:13
  • @CmosBattery, thanks for reply, but I do not need to touch image, x-y co ordinates are predefined. Thanks – Hiren Patel Jan 12 '16 at 06:22
  • @HirenPatel Hi Hiren. I need one help regarding this – Piyush Dec 14 '17 at 12:02
  • @Piyush, yes please. – Hiren Patel Dec 14 '17 at 12:29
  • @HirenPatel Tare aa working che ? Proper ?? Hoy to mane apk share karne check karvi che. Kem k mare crop type nu j che so . Pls. And if same as i need then can you pls share code ? And jetla part no screenshot le che etla no j bitmap proper male che cropped ?? – Piyush Dec 14 '17 at 12:31
  • @Piyush, As of now I don't have source code. But one of the alternative you can find https://drive.google.com/file/d/0B2lY08LUSUMMQlRKNVNjX3h6REk/view – Hiren Patel Dec 14 '17 at 12:38
  • I have already checked that. But i can't get proper from it. Do u have apk file ? From where i can check ? – Piyush Dec 14 '17 at 12:39
  • @Piyush, No man. Don't have. I had founded some other solution for this. Let me check if it available or not. – Hiren Patel Dec 14 '17 at 12:46
  • @HirenPatel Okay. Pls check and let me know if u can. Pls – Piyush Dec 14 '17 at 12:47
  • @HirenPatel Hi. Have you found alternative ? – Piyush Dec 15 '17 at 04:52

1 Answers1

1

I'm an iOS developer, but can be answer to your question, as I'm sure that these things are also possible in Android ! ;)

You can follow these steps:

  1. Don’t make any change in your current flow.
  2. Add overlay view the way you want.
  3. Take screenshot of the back image view which are showing location, may be of particular size (or the exact size of circle on overlay).
  4. Show that captured screenshot (image) at circle view position (you can have an another image view for that).
  5. Zoom that image view (From Step.4)
  6. You are done!

Goodluck.

Hemang
  • 26,840
  • 19
  • 119
  • 186