I have problem with my android application. I want to scale or projection my image from rectangle to trapezoid. My images i received from my camera. I dont know how to scale them. I need some help from you.
Here is my image to decrible my idea.
Thank inadvance!
Related
I am looking for face Aware Image-view. Instead of cropping Image or simply center crop scale type of Image-view, the face should detect in image-view and adjust face to center of Image-view. Is there any Android Custom Image-view library provide such functionality?
I looked at below references but not got success.
https://medium.com/#ayltai/youre-cropping-images-wrong-a79e8f67e6c9
I got Library in IOS but not getting anything in Android.
https://github.com/BeauNouvelle/FaceAware
Can anyone help me out? Thank You.
I need to implement the custom image cropping instead of using the system cropping (i.e. "com.android.camera.action.CROP"). I need to know the exact position of the cropping bounding box but this information is not retrievable if I choose to use the default cropping. Besides, the bitmap image is down sampled too much by default cropping.
The steps are as following:
Create the original size bitmap from source (using uri). The
original size is about 4000x3000 which is too big.
The user defines the crop area to extract the ROI which results in resizing of the original image to fit the ImageView. (size of ImageView is about 700x700)
Record the position of the bounding box in the ImageView.
Retrieve the cropped area from the original image and create another bitmap for it.
Resize the cropped bitmap to fit the imageview size to show it on the screen.
This approach works on my device (ZTE nuoio with Android 4.3) well. However, the app crashes on Samsung S4 with Android 4.4.4 and Note 4 while performing step 1 probably because of the out-of-memory error.
Therefore, I try to do another approach that creates the bitmap which is down sampled from the source image, rather than having the original size bitmap image.
I need to have the information of the exact position of cropped area from the original image. That is the reason why I didn't use default cropping. Could you please help me out with my case either providing
the solutions to derive the exact coordinates of the bounding box of the cropped image in the original image as a matrix.
how to solve the out-of-memory error in step 1 using the approach I mentioned above.
Or other approach to achieve image cropping with knowing the exact coordinates of cropped area form the original image.
Thank you so much.
For Crop an image and get Coordinates use library Edmodo Croper https://github.com/edmodo/cropper
For Out of memory issue you have to down scale image.
I do have a small 100X100 texture for my game, what my question is can i scale that image excluding its corner so that i can make different size window out of it. I am attaching the image so that u will have a better understanding, any help is appreciated, thanks :hug:
Here is the tool to create 9 patch images
http://android-ui-utils.googlecode.com/hg/asset-studio/dist/nine-patches.html
Try this. It should work.
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 :)
I need the rounded carousel affect to some set of images. I am using the below sample project for this.
http://www.codeproject.com/Articles/146145/Android-3D-Carousel
I would like to reduce the image size while it's moving to background and rotate the image with some angle. Finally the output should be as below.
Need help regarding this. Thanks in advance.