Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need info on Graphic operations [BitBlt()]

Status
Not open for further replies.

Valius

Programmer
Oct 20, 2000
174
US
I've been messing with some basic Win32 graphic stuff cause I just want to learn how it works. I have created a bitmap, gotten a handle to the client window screeb and created a compatible memory DC to my screen and selected that bitmap object to my memory DC. I can successfully copy that bitmap from my memory DC onto the screen just fine using Bitblt(). But this is what I would like to do. Is there a way I can have 2 compatible memory DCs to my screen, copy the object to the first memory DC, then use Bitblt() to copy the object from the first memory device to the second memory device, then from the second memory device to the screen using Bitblt()? I've been working on this for ever it seems like, but all I get when I do that is a 1 x 1 pixel. I've even tried to copy the object to the screen first, make a compatible Bitmap from the screen, select that compatible bitmap back into my memory DC then do Bitblt() again and it doesn't work. It's almost like it's loosing info somehow. What I'm ultimately wanting to do is copy the image multiple times to on the second memory DC and then to the screen. If I copy them to the screen first then try to move them, I get a lot of flicker. I guess what I'm trying to do is page flipping in a sense. Any info on this subject or any books/web sites I can be directed to would be GREATLY appreciated. Thanks in advace!

Niky Williams
NTS Marketing, Inc.
 
i don't know exacly how to do that, but I think what you are trying to do is a pattern brush.

You ca use a patern brush with CreatePatternBrush.
Also if you have a SDK program you can specify a pattern brush in the brush parameter of the WNDCLASSEX structure in the RegisterClass call.
Take care this sometimes fails in NT environment (I haven't discovered why.) s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
I figgured it out...just wasn't understanding everything properly and how it all worked like I thought it did. If anyone has any questions on this subject, lemme know, I think I can help them out. Thanks for your input Ionel, I do appreciate it!

Niky Williams
NTS Marketing, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top