Problems with crop? #662
Unanswered
jueqing1015
asked this question in
Help
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
Solved, it turns out that the image information needs to be reset every time the crop is completed. It is very strange why this happens. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I used an image to load into PICTUREBOX, and then draw a rectangle on PICTUREBOX through the three events of MouseUp, MouseDown, and MouseMove, and then crop the image according to the Rectangle.
My magicickage
public static MagickImage PicImage;
When I first cropped according to the coordinates, the result was correct, but when I cropped the second time, it was wrong, but if I save the result of each crop to the local and then immediately use a new MAGICKIMAGE After loading, the crop is correct again, a very strange problem,
In order to verify this problem, I found another control ImageProcessor, the same code using the control is correct. I don’t know if this phenomenon is a bug or there is a problem with my method. The method I use is
PicImage.Crop(new MagickGeometry(rect));
This is a simple DEMO I made to fully reflect the problem
One is another component that I adopt, the other is MAGICK.NET
The upload is slow because MAGICK.NET is too large, because you need to download the reference yourself
Magick.NET-Q8-AnyCPU 7.17.0.0
Because it has been used MAGICK.NET smoothly, the development has been completely stopped due to this problem. Please also trouble you to verify whether it is a software problem or my operation problem. If it is my operation problem, please guide me. More urgent!
https://github.com/dlemstra/Magick.NET/files/4766136/Test.zip
Beta Was this translation helpful? Give feedback.
All reactions