mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 14:03:23 -07:00
Fixed another object which serialized something it shouldn't.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2475 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
e2be04a552
commit
d7abc8ce93
1 changed files with 5 additions and 7 deletions
|
@ -25,9 +25,10 @@ using Greenshot.Plugin.Drawing;
|
|||
using GreenshotPlugin.Core;
|
||||
|
||||
namespace Greenshot.Drawing.Filters {
|
||||
[Serializable()]
|
||||
[Serializable]
|
||||
public class MagnifierFilter : AbstractFilter {
|
||||
|
||||
[NonSerialized]
|
||||
private BitmapBuffer bbbSrc;
|
||||
private int magnificationFactor;
|
||||
|
||||
|
@ -38,15 +39,12 @@ namespace Greenshot.Drawing.Filters {
|
|||
public override void Apply(Graphics graphics, Bitmap applyBitmap, Rectangle rect, RenderMode renderMode) {
|
||||
magnificationFactor = GetFieldValueAsInt(FieldType.MAGNIFICATION_FACTOR);
|
||||
applyRect = ImageHelper.CreateIntersectRectangle(applyBitmap.Size, rect, Invert);
|
||||
|
||||
bbbSrc = new BitmapBuffer(applyBitmap, applyRect);
|
||||
try {
|
||||
|
||||
using (bbbSrc = new BitmapBuffer(applyBitmap, applyRect)) {
|
||||
bbbSrc.Lock();
|
||||
base.Apply(graphics, applyBitmap, applyRect, renderMode);
|
||||
} finally {
|
||||
bbbSrc.Dispose();
|
||||
bbbSrc = null;
|
||||
}
|
||||
bbbSrc = null;
|
||||
}
|
||||
|
||||
protected override void IteratePixel(int x, int y) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue