mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-02 18:26:27 +13:00
Fix output image
This commit is contained in:
parent
c5e601a34d
commit
0ddc63a670
1 changed files with 7 additions and 6 deletions
|
@ -695,18 +695,17 @@ public void UpdateRegionPath()
|
|||
|
||||
protected override Image GetOutputImage()
|
||||
{
|
||||
Image img = base.GetOutputImage();
|
||||
|
||||
if (AreaManager.DrawingShapes.Length > 0 || AreaManager.EffectShapes.Length > 0)
|
||||
{
|
||||
using (Bitmap bmpCopy = new Bitmap(img))
|
||||
using (Graphics g = Graphics.FromImage(img))
|
||||
Bitmap bmp = new Bitmap(SurfaceImage);
|
||||
|
||||
using (Graphics g = Graphics.FromImage(bmp))
|
||||
{
|
||||
foreach (BaseEffectShape shape in AreaManager.EffectShapes)
|
||||
{
|
||||
if (shape != null)
|
||||
{
|
||||
shape.DrawFinal(g, bmpCopy);
|
||||
shape.DrawFinal(g, bmp);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -718,9 +717,11 @@ protected override Image GetOutputImage()
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
return bmp;
|
||||
}
|
||||
|
||||
return img;
|
||||
return base.GetOutputImage();
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
|
|
Loading…
Reference in a new issue