Click here to Skip to main content
15,916,398 members
Articles / Multimedia / Image Processing

Work with Bitmaps Faster in C#

Rate me:
Please Sign up or sign in to vote.
4.94/5 (54 votes)
15 Aug 2011CPOL 342.4K   77  
The alternative solution, how to work with images faster.


Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
20 Nov 2011danlobo
I got what A.J tried to say. It's about implementing IDisposable in LockBitmap.Basically, it involves changing:public class LockBitmapto: public class LockBitmap : IDisposableThe constructor:public LockBitmap(Bitmap source){ this.source = source;}to:public...
Please Sign up or sign in to vote.
15 Aug 2011robertjb20
You can increase the speed of both SetPixel and GetPixel by doing the following:Add the line 'int step = 0' at the LockBitmap class level.Remove 'int' declation of 'step' in the LockBits method and calculate as is.In both SetPixel and GetPixel, remove the line:int cCount = Depth /...


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Written By
Georgia Georgia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions