G
Guest
I've magnified an image on the form as following codes:
private void ViewForm_Paint(object
sender,System.Windows.Forms.PaintEventArgs e)
{
Point ulCorner = new Point( 0, 0);
e.Graphics.DrawImage(theImage,ulCorner);
}
private void menuZoomIn_Click(object sender, System.EventArgs e)
{
Graphics dc = this.CreateGraphics();
float rWidth = (float)(theImage.Width*1.5);
float rHight = (float)(theImage.Height*1.5);
dc.DrawImage(theImage,0F,0F,rWidth,rHight);
}
The issue is how to save the image magnified to itself as the form will
AutoRedraw according to its Form_Paint event. I think the key point is how to
get the magnified image on the form.
Any solutions?
private void ViewForm_Paint(object
sender,System.Windows.Forms.PaintEventArgs e)
{
Point ulCorner = new Point( 0, 0);
e.Graphics.DrawImage(theImage,ulCorner);
}
private void menuZoomIn_Click(object sender, System.EventArgs e)
{
Graphics dc = this.CreateGraphics();
float rWidth = (float)(theImage.Width*1.5);
float rHight = (float)(theImage.Height*1.5);
dc.DrawImage(theImage,0F,0F,rWidth,rHight);
}
The issue is how to save the image magnified to itself as the form will
AutoRedraw according to its Form_Paint event. I think the key point is how to
get the magnified image on the form.
Any solutions?