I’m trying to crop a picture in C# from integer x, y coordinates..
I just can’t figure out how to get it?
public void doCroppedImage(int pointX, int pointY)
{
Rectangle cropRect = //???
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use this code. It returns the cropped image.
But one comment, to crop an image you have to know not only the x and y coordinates of cropping point but also the width and height of the cropped image.