Answers for "online image cropper"

0

Crop image

<img
  ...
  style="width: 300px; height: 337px; object-fit: cover;"
  ...
/>
Posted by: Guest on September-15-2021
0

image cropper implementation

// start picker to get image for cropping and then use the image in cropping activity
CropImage.activity()
  .setGuidelines(CropImageView.Guidelines.ON)
  .start(this);

// start cropping activity for pre-acquired image saved on the device
CropImage.activity(imageUri)
 .start(this);

// for fragment (DO NOT use `getActivity()`)
CropImage.activity()
  .start(getContext(), this);
Posted by: Guest on December-22-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language