Crop image by polygon area
I want to crop image by polygon area, but couldn`t find any library, which can make it. OpenCV is too big for this small thing. JJIL [ enter link description here ] crop just rectangle area. Maybe you have any ideas how i can achieve it? Thanks for help! FOR Nidhi: Try something like this, if doesnot work - create another canvas for path, and than get Bitmap from it (for mask), and apply this mask bitmap to your initial canvas instead drawPath. Bitmap obmp = BitmapFactory.decodeResource(getResources(), R.drawable.image1); Bitmap resultImg = Bitmap.createBitmap(obmp.getWidth(), obmp.getHeight()