I’m working with images like: https://i.stack.imgur.com/zmQr0.jpg
I’ve managed to find a vertical line between pages on scanned image. But sometimes there are some errors and I need to make an option for user to change this line position and angle. I think this would be nice within a PictureBox.
I need somehow to draw a line between two movable points on a picturebox with current image. When I move a point, position of line and it’s angle have to be changed properly.
Here is a sample code you can use for your need. It basically uses 4 events :
– Paint
– MouseDown
– MouseMove
– MouseUp
You can copy-paste this code to a form called Form1, with a picture box called pictureBox1