You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 31, 2023. It is now read-only.
If i remember correctly originX, originY are the coordinates of the top left corner where you want your cropped image to start, and width and height the desired size of the cropped image.
So if you have an image 120px width and 100px height, and you want to crop a square of 100px taking full height but centered horizontally, it should be originX = 10, originY = 0, height = 100, width = 100. This will crop a square, removing 10px at the start of the image and 10px at the end.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Can someone explain to me how to use the cropImage function please..
<< FlutterNativeImage.cropImage(file.path, originX, originY, width, height); >>
What means originX, originY, what if with>height... things like that.
Constantly i get this error: java.lang.IllegalArgumentException: x + width must be <= bitmap.width()
Thanks.
The text was updated successfully, but these errors were encountered: