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.
Printable View
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.
Copy picMain.Image into another picturebox's picture property, then use savepicture.
Z.
Why not directly PicBox.SavePicture? Just specify the PicBox.Image property as the source :)
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.
Help...
Please...
I need to save the bitblted picture into a bitmap file!!
Help!
Thank you,
Arie.
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
Maybe it helps to have AutoRedraw = True. If it's false, then the bitmap is not persistent, so it might not be saved.
It is set to False,
because if I set it to True, the bitblt is not working properly!
Please help!
Thank you,
Arie.
When set to AutoRedraw=True:
VB Code:
PicBox.Cls ' Bitblt and drawing stuff PicBox.Refresh