Combine GDI+ and DirectDraw?

Zoulz

New member
Joined
Jan 31, 2003
Messages
4
Location
Sweden
GDI+ has quite a lot of goodies. Would it be possible to combine the two to generate cool effects such as alpha blending? Anyone have a clue? Or is D3D the only way to go if you want fast and nice effects?
 
Normally, you wont be using GDI and DirectX at the same time. You may use some GDI functions to read in image file formats that DirectX doesnt support, but as far as actual drawing to the screen youll most likely use one or the other.

What kind of program did you have in mind? Do you just want cool effects, or were you writing a game?

DirectDraw doesnt support alpha blending (translucency) but does support color keys (transparent regions). Direct3D support pretty much everything, but the learning curve is steeper.

If you want DirectX and normal window controls to intermix (such as a textbox), you might have problems. With GDI+ you probably wont have any issues.

-Nerseus
 
I was thinking bout actually combining gdi and dd to draw. But as you say there is prob no way to do that. Oh, well. Guess ill have to learn D3D, but that will be fun too :)
 
There used to be a way to get the Handle to the Backbuffer so that you could use the API to draw directly onto it, but Im not sure if its there in DX9.

This might be desirable if you need to draw some primitives that GDI+ can do but DirectX cant, such as an Arc, a Bezier curve, etc.

-nerseus
 
Back
Top