Results 1 to 3 of 3

Thread: [RESOLVED] Save a picture drawn on the form

  1. #1

    Thread Starter
    Addicted Member cc2^^'s Avatar
    Join Date
    Apr 2008
    Location
    Right behind you.
    Posts
    165

    Resolved [RESOLVED] Save a picture drawn on the form

    I am using Directx 8 to draw things on a form, and i want to know how to save that to a picture. I have tried:

    Dim i As IPictureDisp
    Set i = me.Image
    SavePicture i, App.Path & "\picture1.bmp"

    but that only shows a black picture with nothing on it.
    All that is drawn on the form is around 10000 white dots. It's a gravity simulator program and i would like to create and save an image after each step of calculating. That way i can import the image sequence with adobe flash and export it to a movie, instead of using fraps to record it. (when i record it with fraps it lags alot)

    Any help is always appreciated!
    I think I am, therefore, I am. I think.

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Save a picture drawn on the form

    Ensure forms's AutoRedraw=True. You may want to also Refresh the form before saving
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3

    Thread Starter
    Addicted Member cc2^^'s Avatar
    Join Date
    Apr 2008
    Location
    Right behind you.
    Posts
    165

    Re: [RESOLVED] Save a picture drawn on the form

    Alright i got it, thanks!
    I think I am, therefore, I am. I think.

Tags for this Thread

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