Commit 895e0b1a LN

1

1 个父辈 9c337487
......@@ -93,6 +93,7 @@ namespace AOI
{
//g.Clear(Color.Transparent);
g.DrawImage(maskImg, dstRect, srcRect, GraphicsUnit.Pixel);
g.Dispose();
}
result.MakeTransparent(Color.White);
return result;
......
......@@ -79,6 +79,7 @@ namespace AOI
g.DrawPath(pen, resultBean.roiPath);
}
}
g.Dispose();
}
resultImg = image;
return resultBeans;
......
......@@ -443,6 +443,7 @@ namespace Acc.ImageBox
g.FillRectangle(brush, new Rectangle(0, 0, cellSize, cellSize));
g.FillRectangle(brush, new Rectangle(cellSize, cellSize, cellSize, cellSize));
}
g.Dispose();
}
return result;
......@@ -2419,6 +2420,7 @@ namespace Acc.ImageBox
{
var br = new TextureBrush(this.Image);
g.FillPath(br, this.SelectionRegion);
g.Dispose();
}
var dstRect = new RectangleF(0, 0, bounds.Width, bounds.Height);
......@@ -2427,6 +2429,7 @@ namespace Acc.ImageBox
{
result = new Bitmap((int)bounds.Width, (int)bounds.Width);
g.DrawImage(mask, dstRect, srcRect, GraphicsUnit.Pixel);
g.Dispose();
}
return result;
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!