Commit graph

3 commits

Author SHA1 Message Date
RKrom
3f4d93f2b6 Fixed an issue with the FastBitmap, renamed methods in the BitmapBuffer to be equal to the FastBitmap implementation. In general it's now very easy to switch from the BitmapBuffer to the FastBitmap implementation, but one should consider that the BitmapBuffer checks the x,y if they are inside... and supports a "apply rectangle". Had to "refactor" the CreateBlur for this. Changed the CreateShadow to work with the BoxBlur, this changes the time to create a shadow of a 1280x1024 from ~2.6 to ~1.2 seconds on my PC... which is still slow. The resulting effect seems to be extremely similar... good enough for me.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2480 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-12 16:36:09 +00:00
RKrom
e2be04a552 Code cleanup: 1) AbstractFilter: why did we serialize the bitmapbuffer? 2) Bitmapbuffer: removed serialization code, this object should NEVER be serialized as it's just a view which makes access faster. 3) QuantizerHelper.cs: Refactored to use the FastBitmap
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2474 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-10 14:40:01 +00:00
RKrom
f34923e0d7 Added the FastBitmap.cs, this should replace the BitmapBuffer sometime. The advantage of using this, it has fast implementations for accessing certain PixelFormats directly and doesn't need to generalize the code which would make it slower.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2473 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-10 14:16:57 +00:00