Implementing a crop image in Android - android

I am trying to implement a crop image for my app.
What I want to do is that I've an imageview set to 300x300 .I am taking images from
CAMERA and GALLERY now the images can be bigger than 300x300. I want to implement
a cropping tool using which I can drag the image inside imageview so that I can select the useful portion of 300x300 of the image.
I want to implement the same feature which this app implemented for cropping.
Can anyone point me in the right direction ?

Try this:
https://github.com/biokys/cropimage
But if you want to drag and fit useful portion of a image in a Imageview than you can use MultiTouch View.
https://code.google.com/p/android-multitouch-controller/
You can move the image on a custom view. Zoom and Pinch. Once you found the useful area. Take a screenshot of the imageview.
hope any of the solutions helps :)

Related

How to get image from imageView?

I have implemented custom imageView with a pinch option. Now I stuck in after pinch whatever the image visible in imageview. Only get the pinched/visible image as cropped & set that cropped image to another imageview. Pls, help to achieve this.

Moving an image inside in other frame image android

I have a frame image and another image selected from gallery. What i want is to place that image inside the transparent part of that frame image and also I can apply onTouchListener on the image selected from gallery.
Like in the app whose link is provided following.
https://play.google.com/store/apps/details?id=com.lyrebirdstudio.pipcamera
Any idea or concept will be helpful.
My IDEA
Here is what i am thinking to create a relative layout and setting the Picture Frame as a background and then scaling the other image according to the size of the relative layout. Then i can apply onTouchlistener on the image easily.
Am i going in right direction or there is some better way though which i can achieve the desire results?
Thanks in advance.
http://stacktips.com/tutorials/android/how-to-drag-a-view-in-android
OR
how to drag an image by touching in android?
hope it helps..

set image from Gallery or Camera to fit to Imageview android

I set image From Gallery and Camera to Imageview.I used Touchimageview for pinch Zoom Functionality for imageview.
Here is Link For this Touchimageview : https://github.com/MikeOrtiz/TouchImageView/blob/master/src/com/ortiz/touch/TouchImageView.java
But image is not set ProPerly in Imageview.
In the Picture,
The left side is What Actually happen with me.
The Right side which i wanted Fit to imgeview same as Imageview height.
I Used ScaleType = "CenterCrop" But After That i Cant able to Zoom in Out in Imageview.
1).How to Crop Bitmap Like Fit to imageview with keep aspect resio?
2).or How to set Image From gallery or camera to Fit To imageview And Add Zoom in out Functionality?
Help me to Solve This issue
Thanks You in Advance
For zoom-able ImageView user Gesture ImageView Library
You can download library from here, it's easy to use. this library provides you zoomable ImageView so use Gesture ImageView instead of Simple ImageView
https://github.com/jasonpolites/gesture-imageview
use android:scaleType="fitxy". Make sure your image is of higher resolution, otherwise the image will lose its quality. It may also look stretched if it the image doesn't maintain aspect ratio

How to crop image in circular shape in android?

I want to crop selected image in circular shape from gallery. I have checked few solution for same question, but I am not able to solve my issue. Maximum solution provide for custom shape imageview means provide a .xml file or class extends with Imageview but I want to crop image like following screenshot or Instagram app crop image.
If you do not mind to use a library.Use SimpleCropView library,it has circle crop mode.
https://github.com/IsseiAoki/SimpleCropView

How to Drop image over image view using fingure touch

I am very much new this issue.I want to make application like this.look at the image below,This is a brief summary of my requirement.
ok so top there is a image view.After user capture image from camera in OnActivityResult I am displaying captured image on main image view. Below that image view there is a HorzontalScrollView, Inside HorzontalScrollView i have put couple of images,like hat,spects etc...
ok so What i want is, user should be able to drag any image from HorzontalScrollView and can be able to put that small image on main image view.
Any guide/tutorial will be appreciated from guys who have worked on such functionality
Thanks

Categories

Resources