-
images in memory...
Ok I can LOAD a picture into memory, and i can even stretchblt or bitblt to a picturebox. However, I can't figure out how to make a seperate stdpicture2 accept the result of the resized stdpicture1. I know it has to do with setting up stdpicture2 right to accept it somehow. Basicly my design is this:
1 picture to load the picture file.
1 picture to hold the result of Stretchblt of the first picture
Save picture #2 to a file.
-
StretchBlt the Picture to a PictureBox, and then use the PictureBox's .Image property as your new picture object.
-
...
Ok I can transfer it, but I still can't save it correctly. It turns up with the background of the picturebox rather than the bitblt section.
-
Play with the AutoRedraw property and the Refresh method, see what combination you need to save it properly.
-
Could you provide an example of how it works for you Janus? Is it only a Windows 2000 versus Windows ME/ 98/ 95 ? hmm....
~SirK
-
I usually do this:
PictureBox.AutoRedraw = True
' Draw stuff
PictureBox.Refresh
-
That is the best way to do it, as Janus mentioned.
-
Thanks guys...I finally got it to work. For some reason when I would have the DC in memory and then try to delete it afterwards, it would display the picture. ?? Weird...but thanks though.
~SirK