Difference between revisions of "CSharp Image Processing Notes"

From PeformIQ Upgrade
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 10: Line 10:
* http://www.codeproject.com/Articles/21097/PictureBox-Zoom
* http://www.codeproject.com/Articles/21097/PictureBox-Zoom
* http://stackoverflow.com/questions/10915958/how-to-zoom-inout-an-image-in-c-sharp
* http://stackoverflow.com/questions/10915958/how-to-zoom-inout-an-image-in-c-sharp
*  
* http://www.codeproject.com/Articles/26532/A-Zoomable-and-Scrollable-PictureBox
* http://blogs.msdn.com/b/calvin_hsia/archive/2008/08/21/8885657.aspx
* [http://www.dotnetcurry.com/showarticle.aspx?ID=196 Emulate Image Zooming in a PictureBox Control at Runtime]
* https://www.daniweb.com/software-development/csharp/threads/420386/how-to-zoom-an-image-in-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]]

Latest revision as of 22:59, 28 May 2015