[Mono-dev] Bitmap manipulation - am I doing it right?
ClassDevelopment at A-SoftTech.com
Wed Apr 1 06:56:00 EDT 2009
I don't know what you mean by "Clone" (I hope you don't meant the "Clone" Method, you shouldn't use this).
Just make a copy of the relevant image part. If this is slower than making a Clone of the entire bitmap object you are doing something VERY wrong indeed. You are using Graphics.DrawImage for the copying, right?
You could also use LockBits which is even faster, but that is unsafe and substantially more work.
Von: mono-devel-list-bounces at lists.ximian.com [mailto:mono-devel-list-bounces at lists.ximian.com] Im Auftrag von Stifu
Gesendet: Dienstag, 31. März 2009 23:12
An: mono-devel-list at lists.ximian.com
Betreff: Re: [Mono-dev] Bitmap manipulation - am I doing it right?
2) How would you do this, technically? Because the only solution that comes
to my mind is to clone a little part of my Bitmap to create the temporary
copy... and making a sub-sized clone of a Bitmap is actually much slower
than making a full clone. So it'd be actually slower than my current
More information about the Mono-devel-list