RE: .NET CF Drawing Problems



Hi Cristian,

Welcome to MSDN newsgroup!

Based on my understanding, your concern is the Bitmap.Setpixel method has
the bad performance in your application. If I have misunderstood anything,
please let me know.

By using Reflector tool, you can find the Bimap.Setpixel method calls the
GdipBitmapSetPixel function which belongs to native GDI. So I think the
problem is not caused by .NET Compact Framework. As far as I know, neither
..NET CF nor EVC (Embedded Visual C++) contains LockBits method because the
platform doesn't supply it.

In the situation, I suggest we should create a buffer like the LockBits
does by ourselves. If the performance also bad, I think maybe the problem
caused by algorithm. Or you can post the issue to GDI queue and discuss
with the people who may have more experience about GDI performance.

I hope the above information helps, if you have any questions or concerns,
please do not hesitate to let me know. I am looking forward your reply.

Yuan Ren [MSFT]
Microsoft Online Support

.



Relevant Pages

  • Re: Copy custom region from Bitmap to another Bitmap
    ... The GDI+ FAQ has an article on using the LockBits method. ... To move a large source area into a small destination you need to be thinking ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: poor GDI+ in .net cf
    ... Windows CE doesn't have GDI+, so the underlying drawing support is more ... Peter Foot ... > The GDI+ in .net compact framework is missing lots of many function such ...
    (microsoft.public.dotnet.framework.compactframework)
  • poor GDI+ in .net cf
    ... The GDI+ in .net compact framework is missing lots of many function such as ... coordinates transform(like world transform) even in version2.0 ...
    (microsoft.public.dotnet.framework.compactframework)

Loading