Results 1 to 9 of 9

Thread: Screen Shots

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636

    Screen Shots

    Hi,

    In my game I have a picture box (picMain) and at first I loaded a bitmap into it. then I did some bitblt drawing. now, how can I save it as a bitmap like screen shot?

    Thank you,
    Arie.

  2. #2
    Zaei
    Guest
    Copy picMain.Image into another picturebox's picture property, then use savepicture.

    Z.

  3. #3
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    Why not directly PicBox.SavePicture? Just specify the PicBox.Image property as the source
    Teaudirenopossum.Musasapientumfixaestinaure.
    (I can't hear you. There's a banana in my ear)

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636
    Pic.Image = Pic.Picture - Doesn't work!
    Pic.Picture = Pic.Image - Works but not good!
    Saving the Image with SavePicture saves the picture I loaded at first, not the bitblted things.
    What can I do?
    How can I save the bitblted picture??

    Help!

    Thank you,
    Arie.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636
    Help...
    Please...

    I need to save the bitblted picture into a bitmap file!!

    Help!

    Thank you,
    Arie.

  6. #6
    Junior Member
    Join Date
    Nov 2001
    Location
    Yorkshire, UK
    Posts
    21

    Hmmm

    Maybe try something like Pic1.Image = Pic1.Picture
    Pic1.SavePicture(blaa blaa blaa)

    I KNOW its possible because I've done it before, but I can't remember how I did it. It's the IMAGE that you want though, not the picture.

    I'll see if I can find my old project when I get home, but I'm prob not in Uni tomorrow so you might have to wait till Monday. Sorry.

    FJ
    100% of drink driving incidents are alcohol related.

  7. #7
    Fanatic Member riis's Avatar
    Join Date
    Nov 2001
    Posts
    551
    Maybe it helps to have AutoRedraw = True. If it's false, then the bitmap is not persistent, so it might not be saved.

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636
    It is set to False,
    because if I set it to True, the bitblt is not working properly!

    Please help!

    Thank you,
    Arie.

  9. #9
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    When set to AutoRedraw=True:

    VB Code:
    1. PicBox.Cls
    2. ' Bitblt and drawing stuff
    3. PicBox.Refresh
    Teaudirenopossum.Musasapientumfixaestinaure.
    (I can't hear you. There's a banana in my ear)

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