EK1 Posted August 23, 2003 Posted August 23, 2003 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. Quote
*Experts* Nerseus Posted August 23, 2003 *Experts* Posted August 23, 2003 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 Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
EK1 Posted August 23, 2003 Author Posted August 23, 2003 FillColor works the same as FillRectangle and FillEllipse. So I'm ok with that. I just need a way to scale now. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.