Click here to Skip to main content
15,885,141 members
Articles / Multimedia / Image Processing

Work with bitmaps faster in C#

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
20 Nov 2011CPOL 14.1K   4  
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...

Alternatives

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.
15 Aug 2011Vano Maisuradze 2 alternatives  
The alternative solution, how to work with images faster.
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 /...

License

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


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

Comments and Discussions