mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 13:33:27 -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;
|
using GreenshotPlugin.Core;
|
||||||
|
|
||||||
namespace Greenshot.Drawing.Filters {
|
namespace Greenshot.Drawing.Filters {
|
||||||
[Serializable()]
|
[Serializable]
|
||||||
public class MagnifierFilter : AbstractFilter {
|
public class MagnifierFilter : AbstractFilter {
|
||||||
|
|
||||||
|
[NonSerialized]
|
||||||
private BitmapBuffer bbbSrc;
|
private BitmapBuffer bbbSrc;
|
||||||
private int magnificationFactor;
|
private int magnificationFactor;
|
||||||
|
|
||||||
|
@ -39,14 +40,11 @@ namespace Greenshot.Drawing.Filters {
|
||||||
magnificationFactor = GetFieldValueAsInt(FieldType.MAGNIFICATION_FACTOR);
|
magnificationFactor = GetFieldValueAsInt(FieldType.MAGNIFICATION_FACTOR);
|
||||||
applyRect = ImageHelper.CreateIntersectRectangle(applyBitmap.Size, rect, Invert);
|
applyRect = ImageHelper.CreateIntersectRectangle(applyBitmap.Size, rect, Invert);
|
||||||
|
|
||||||
bbbSrc = new BitmapBuffer(applyBitmap, applyRect);
|
using (bbbSrc = new BitmapBuffer(applyBitmap, applyRect)) {
|
||||||
try {
|
|
||||||
bbbSrc.Lock();
|
bbbSrc.Lock();
|
||||||
base.Apply(graphics, applyBitmap, applyRect, renderMode);
|
base.Apply(graphics, applyBitmap, applyRect, renderMode);
|
||||||
} finally {
|
|
||||||
bbbSrc.Dispose();
|
|
||||||
bbbSrc = null;
|
|
||||||
}
|
}
|
||||||
|
bbbSrc = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void IteratePixel(int x, int y) {
|
protected override void IteratePixel(int x, int y) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue