A
Alberto
I'm drawing an image in a panel control with this sentence in the Paint
method:
e.Graphics.DrawImageUnscaled(Image, panelImage.AutoScrollPosition);
The problem is that I only want to paint a region of the image specified by
a Rectangle object. I can do it with:
e.Graphics.DrawImageUnscaled(Imagen, myRectangle);
but, in this case, if the user moves the image with the scroll bars, it
isn't shown properly.
What can I do? Thank you in advance.
method:
e.Graphics.DrawImageUnscaled(Image, panelImage.AutoScrollPosition);
The problem is that I only want to paint a region of the image specified by
a Rectangle object. I can do it with:
e.Graphics.DrawImageUnscaled(Imagen, myRectangle);
but, in this case, if the user moves the image with the scroll bars, it
isn't shown properly.
What can I do? Thank you in advance.