0

I need to implement image editor project. basically, I need to add some icons,text over an input image then export to final image.

Is there any good tutorial for this?

Alex Shesterov
  • 26,085
  • 12
  • 82
  • 103
Huy Tran
  • 217
  • 5
  • 11
  • Just see this fully functional code https://github.com/siddhpuraamitr/MultitouchWithDynamicAddandRemove And Video http://youtu.be/Jux4QnHu3dY – Siddhpura Amit Oct 19 '14 at 07:25

1 Answers1

2

What you are searching is android-multitouch-controller. I have implemented in one of my application. It is working fine.

It has following facility.

  1. Multi touch image scaling
  2. Multi touch image zooming
  3. single touch image panning

There are 3 projects. In that "MTPhotoSortr" is one which I used. You need to check as per your requirement.

Chintan Rathod
  • 25,864
  • 13
  • 83
  • 93
  • Hi, Is it possible to usemulti touch image scaling in emulator. thanks. – MMakati Oct 30 '13 at 03:52
  • @MMakati, sorry my friend. It is not possible to do so. Emulator is not simulator. So we can not simulate it. You have to implement this in real device. :) – Chintan Rathod Oct 30 '13 at 05:07
  • @ChintanRathod: Thank you! By the way do you have an idea on how to rotate image view with dotted border lines? For example the rotate image on MS powerpoint. Hope you can help me. – MMakati Oct 30 '13 at 15:27
  • @MMakati, but my friend, this code also provides rotation.. have you tried it? it has multi-touch rotation. I am getting your problem. Try it first, if it doesn't full-fill your requirement i will help you.. :) – Chintan Rathod Oct 31 '13 at 05:20
  • @ChintanRathod: Thank You! I will try to deploy on my phone later. Does your rotation has dotted border with anchor points? – MMakati Oct 31 '13 at 05:25
  • @MMakati, no.. it has no border or anchor point. :( – Chintan Rathod Oct 31 '13 at 05:26
  • @ChintanRathod: But I will try your code later. Thanks again – MMakati Oct 31 '13 at 05:28
  • @ChintanRathod this code does not contain a layout. I want to use MTPhotoSortr view in another layout and then in my activity I want to set my contextview to my layout. How can I do that? thanks in advance – CompEng Jun 30 '15 at 09:03
  • @ChintanRathod can u help? – CompEng Jul 07 '15 at 06:24
  • @ErsinGülbahar yes, what you need to do is, you have to take a relative layout (or any other) which allow zorder layout. Your MTPhotoSortr will be upon ImageView so that you can perform pinch zoom and other operation. When you need to take out image, you can simply follow this answer. http://stackoverflow.com/questions/2801116/converting-a-view-to-bitmap-without-displaying-it-in-android. So you can cretae image from your root layout which is combination of CustomView and ImageView. This way you can solve that problem. – Chintan Rathod Jul 07 '15 at 06:28
  • @ChintanRathod hi, thanks for answer,how can I delete image on canvas ? I can t find the solution, can you help? – CompEng Aug 16 '15 at 20:13
  • @ErsinGülbahar you can simply paint with transparent color to whole canvas. I was simply using this to provide "Eraser" functionality. :) – Chintan Rathod Aug 17 '15 at 07:13
  • @ChintanRathod thanks for answer, but I need to delete one image on canvas. There are many image on canvas. So I need to set onlongclick listener to drawable object and delete just it – CompEng Aug 17 '15 at 12:24
  • @ErsinGülbahar got you. actually i used above defined view and put multiple instances of that view over my relativelayout. so when user long press that, i was displaying delete dialog. but i am sorry for deleting single image in canvas, no idea. :( – Chintan Rathod Aug 17 '15 at 12:58