Difference between revisions of "CSharp Image Processing Notes"

From PeformIQ Upgrade
Jump to navigation Jump to search
Line 12: Line 12:
* http://www.codeproject.com/Articles/26532/A-Zoomable-and-Scrollable-PictureBox
* http://www.codeproject.com/Articles/26532/A-Zoomable-and-Scrollable-PictureBox


==Code==
Set PictureBox 's SizeMode Properties to "Zoom"


<pre>
// For Zoom +10
private void btnZoomPlus10_Click(object sender, EventArgs e)
{
            pictureBox1.Height += 10;
            pictureBox1.Width += 10;
}
// For Zoom -10
private void btnZoomMinus10_Click(object sender, EventArgs e)
{
            pictureBox1.Height -= 10;
            pictureBox1.Width -= 10;
}
</pre>


[[Category:CSharp]]
[[Category:CSharp]]
[[Category:Image Processing]]
[[Category:Image Processing]]

Revision as of 22:56, 28 May 2015