-
Hi Guys,
I have a file in the directory c:\images called tex1.jpg. The dimentions of the file are 32*32. I would like to blt this file (using windows BitBlt) to a picture box called picTextures at possition 0, 0. Could you please tell me how? Thanks :D
-
There are two ways:
The easy way - Load the picture into a picturebox or offscreen DC and blit it then...
The little bit more difficult way - Use the code from http://rookscape.com/vbgaming/tutAX.php to read a bitmap manually and use StretchDIBits to blit it (the same thing I use with the Compressed Bitmaps sample at my site, if you're interested, it can be found at VB Code -> DX7 Tutorials -> Compressing bitmaps with the zLib DLL, the compression program doesn't have anything to do with DX7 btw)...
Good luck!
-