Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi all,

what is the fastest way to display Bitmaps using csharp and directx9?

I use

_primary.Draw(destination, MapTile(j,i), new Rectangle(0,0,32,32), Microsoft.DirectX.DirectDraw.DrawFlags.Wait, new DrawEffects() ) ;

for the map and

_primary.Draw(destination, _theSurfaces[0], DrawFlags.Wait | DrawFlags.KeySource) ;

for a field what ist moving over the map.

 

Has somebody other ways to do it?

 

Ciao,

Roman

Posted
You're not using a Backbuffer, you should use a backbuffer, then when you finish drawing everything you Draw/Flip it to the primary surface
.Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?

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...