Skip to content

leanh215/Photo-Cropper

Repository files navigation

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);

About

crop photo by a quadrangle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages