/Photo-Cropper

crop photo by a quadrangle

Primary LanguageJava

PhotoPolygonCropper

Description

Crop photo using polygon

Usage

  • Add to build.gradle
    compile 'vn.tinyhands:photo-cropper:0.0.8'
  • Declare CropImageView in your layout
    <vn.nano.photocropper.CropImageView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/img_photo"
        />
  • Set bitmap to crop
cropImageView.setImageBitmap(bitmap);
  • Call crop() function to get cropped bitmap
    cropImageView.crop(Croplistener cropListener, boolean needStretch);