Title: Allow scrolling while making a diagonal picture montage in C#
The post Make an improved diagonal picture montage in C# describes a program that lets you make a diagonal picture montage similar to the one shown above. I recently wanted to make a picture montage that was much bigger. There are two obvious approaches. First, you could scale the montage as you draw it and then save it at a larger scale. Second, you could let the user scroll the montage.
If you take the first approach, then you would need to convert mouse clicks for the scaled result. This is possible, but more work than the second approach, which is practically trivial. This example simply moves the picCanvas PictureBox control that displays the picture montage into a Panel control. That control's AutoScroll property is set to true, so it automatically displays scroll bars if picCanvas is too large to fit.
That's all there is to it
Download the example to experiment with it and to see additional details.
|