hi guys i am new in android i don't know how to crop an image view in rectangle shape and crop image is selected through touchlistner in android please tell me how to solve this question
view_child=crop_image_border;
float x_point=view_child.getX();
float y_point=view_child.getY();
int x=(int)x_point;
int y=(int)y_point;
Bitmap bitmap_crop=Bitmap.createBitmap(globalvariable.bitmap,x,y,view_child.getWidth(),view_child.getHeight());