Results 1 to 4 of 4

Thread: Copying vs assigning Picture/StdPicture object *[RESOLVED]*

Threaded View

  1. #1

    Thread Starter
    Addicted Member Aldragor's Avatar
    Join Date
    Oct 2002
    Location
    Québec, Canada
    Posts
    140

    Copying vs assigning Picture/StdPicture object *[RESOLVED]*

    I load a picture in a usercontrol.picture Then I try to copy it in a StdPicture object named picOriginal. I then modify my usercontrol.picture as I want. If I want to get back to my original picture I like to overwrite my usercontrol.picture with the picOriginal object. But it seem that the two objects are modified simultaniously.

    here is a code exemple

    VB Code:
    1. Dim picOriginal As New StdPicture
    2.  
    3. UserControl.Picture = LoadPicture("imgage1.bmp")
    4. Set picOriginal = UserControl.Picture
    5. Set UserControl.Picture = Transform(UserControl.Picture, New_Color, m_TransparentColor)
    6.  
    7. 'Here I see good result
    8. 'Now I want to set it back to Original
    9.  
    10. Set UserControl.Picture = picOriginal
    11. 'Try refresh, repaint...
    12. 'No result
    Last edited by Aldragor; Nov 11th, 2002 at 02:02 PM.
    Mens sana in corpore sano
    ... pour mieux travailler!

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