I would like my program to show jpeg image in a 240 X 144 resolution, the image to be shown is 800 x 600, i would like my program to be able to view the jpeg by scrolling it vertically and horizontally. thanks in advance.

11 Years
Discussion Span
Last Post by Godfear1

I created a program that does what your talking about and attached it to this message. The short of it is this. I created a panel object and put a image object inside of it. I set the sizeMode property of the image to Zoom, so any sizing of the image would change viewing size of the image. Then I created tool strip that had the Options to view 100% or 240X144. All these buttons did when you clicked on them was resize the image like this

// 240X144
pictureBox1.Size = new Size(240, 144);
// 100%
pictureBox1.Size = pictureBox1.Image.Size;

I had to set the autoScroll property to true in order to get the scroll bars working.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.