DirectDraw 9 Question

EK1

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


ScaleTransform
FillRectangle
FillEllipse
SmoothingMode.AntiAlias


Im 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 dont know if theres 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 Im not more help, Im not real big on mixing DirectX, GDI, and GDI+.

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

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