hello all, I would like to know how i can clone an image of a picturebox.
I have the picturebox not visible on my screen and want to recreate the image on a certain location. what is the easiest way to do this?
Printable View
hello all, I would like to know how i can clone an image of a picturebox.
I have the picturebox not visible on my screen and want to recreate the image on a certain location. what is the easiest way to do this?
Hi ;)
Scroll to bottom of the page: http://msdn.microsoft.com/en-us/libr...icturebox.aspx
If you just want to show the image on a given location then you don't need to clone it, for example showing the image in the Form using different size:
VB Code:
Private Sub Form1_Paint(ByVal sender As Object, _ ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint Dim g As Graphics = e.Graphics g.DrawImage(PictureBox1.Image, New RectangleF(200, 200, 100, 100)) End Sub