PDA

Click to See Complete Forum and Search --> : BitBlt() Question


Corren
Apr 2nd, 2002, 08:02 PM
Okay, what makes BitBlt() so special when you have two picture boxes - one for a black background and another with a picture in it, and you want to put the picture onto the black background?

Couldn't you just use the background picture as a container to hold the picture instead of using BitBlt()?

What I mean is that I have a picture of a dragon hovering on a black, stary background with quite a bit of code using BitBlt, when all I really need to do is just pop the picture onto the background and have much fewer lines of code to make it hover.

Can someone please tell me what is so special about BitBlt() that would make it so prefered over just doing something with even few lines of code? Seems kind of inefficient...

jim mcnamara
Apr 2nd, 2002, 08:21 PM
BitBlt is very versatile - plus your code will obscure the original image in the pic box. What if you have a pink backgound, then you wanna move something over from a black background?

sql_lall
Apr 3rd, 2002, 06:55 AM
Also what you can do with Bitblt is use masks (i.e. you can transfer different shape pictures, not just rectangles), you can move part of a picture, and one of the best things is that you can copy what's on the screen, and play around with it :)
Also, if you make your own function in a module, which uses Bitblt in the moct common way you are going to use it in your program, the coding decreases immensly.

/\/\isanThr0p
Apr 3rd, 2002, 06:29 PM
has anyone mentioned that bitblt is pretty fast?