DirectDraw 9 Question

EK1

Freshman
Joined
Aug 20, 2003
Messages
28
How can I achieve the same results as GDI+ functions in DirectDraw?


ScaleTransform
FillRectangle
FillEllipse
SmoothingMode.AntiAlias


I'm using DrawBox and DrawCircle but they are not filled. I also tried DrawStyle = 6 but no luck.
 
For some of the items you mentioned, there is no support in DirectX. You can always lock a surface (texture in DirectDraw, I think), and get a handle to it that you can then use with normal Win32 GDI functions. I don't know if there's a way to have GDI+ draw onto that handle, but if so it would be something to do with getting GDI+ to draw onto an hDC. Sorry I'm not more help, I'm not real big on mixing DirectX, GDI, and GDI+.

Some of the MS samples use GDI to draw onto a surface. If you can't find them, let me know and I'll see what I can find.

-Ner
 
FillColor works the same as FillRectangle and FillEllipse. So I'm ok with that. I just need a way to scale now.
 
Back
Top