Results 1 to 3 of 3

Thread: cloning an image

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2012
    Posts
    142

    cloning an image

    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?

  2. #2
    PowerPoster Radjesh Klauke's Avatar
    Join Date
    Dec 2005
    Location
    Sexbierum (Netherlands)
    Posts
    2,244

    Re: cloning an image



    If you found my post helpful, please rate it.

    Codebank Submission: FireFox Browser (Gecko) in VB.NET, Load files, (sub)folders treeview with Windows icons

  3. #3
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: cloning an image

    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:
    1. Private Sub Form1_Paint(ByVal sender As Object, _
    2.     ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
    3.     Dim g As Graphics = e.Graphics
    4.     g.DrawImage(PictureBox1.Image, New RectangleF(200, 200, 100, 100))
    5. End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width