Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

  • *Experts*
Posted

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

"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
Posted
FillColor works the same as FillRectangle and FillEllipse. So I'm ok with that. I just need a way to scale now.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...