Groups | Blog | Home
all groups > dotnet compact framework > september 2005 >

dotnet compact framework : Image Drawing Speed



horseshoe7
9/14/2005 8:54:01 AM
I have an application where I want to be able to quickly draw digital color
maps on a PocketPC PDA. In 2003, with PPC 2002, I started to try to use
C#/CF, and found it to be horrifyingly slow in drawing images. I ended up
using C++/GAPI(Game API) to draw images, and it was ONE THOUSAND TIME
FASTER! Has anything improved in the last few years to help with image
Alex Feinman [MVP]
9/14/2005 10:34:07 AM
It really depends on how you draw, but do not expect regular graphics
operation ever to approach the speed of GAPI. GAPI operates on a direct
memory buffer. DirectDraw, which replaces GAPI in the new devices does the
same thing. Regular graphics will never be as fast, but used judiciously it
offers a very reasonable speed. If there is one thing to avoid by all costs,
it is Set/GetPixel. Also the drawing speed is greatly enhanced by using an
off-screen buffer

[quoted text, click to view]
horseshoe7
9/14/2005 12:23:04 PM
So, you are saying DirectDraw API calls are now supported directly from the
CompactFramework API on PocketPC devices? How long has this capability been
available? Which specific versions of DirectDraw, CompactFramework, and/or
the PocketPC OS (or whatever MS is calling it now) and the Visual Studio/C#
development tools do I need to take advantage of this?

[quoted text, click to view]
Alex Feinman [MVP]
9/14/2005 4:46:34 PM
I did not say that.
DirectDraw interfaces are supported on Windows Mobile 5 devices. They are
not on the earlier devices. Compact Framework 2.0 wraps Direct3D mobile, but
not DirectDraw. Still you might find the DIrect3D sufficient for your needs

http://msdn.microsoft.com/mobility/windowsmobile/howto/windowsmobile5/api/default.aspx
http://www.mperfect.net/cfMDX


[quoted text, click to view]
horseshoe7
9/14/2005 10:11:02 PM
I've ordered the Windows Mobile 5 Developer Evaluation Kit DVD, and will give
it a whirl... For a number of years, I've been wanting to use C# and .NET if
possible for a cross-platform (PC and Mobile Device) application , but .NET
CF image-drawing applications have been far too slow in the past. I was able
to get reasonable drawing speed using C++ and GAPI, but I wasn't willing to
expend a lot of time completing the application in a non C#/.NET development
and target environment... I pop my head up every few months and check which
way the .NET winds are blowing, and I'm hoping that I can get there with
C#/.NET now.

[quoted text, click to view]
AddThis Social Bookmark Button