From 04eccba51a2230db52e234f96e28c92dce64c3be Mon Sep 17 00:00:00 2001 From: RKrom Date: Thu, 19 Apr 2012 07:42:14 +0000 Subject: [PATCH] Fixed torn edge, used wrong CreateEmpty... git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1802 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- GreenshotPlugin/Core/ImageHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GreenshotPlugin/Core/ImageHelper.cs b/GreenshotPlugin/Core/ImageHelper.cs index e170bd60e..c717ee2f4 100644 --- a/GreenshotPlugin/Core/ImageHelper.cs +++ b/GreenshotPlugin/Core/ImageHelper.cs @@ -325,7 +325,7 @@ namespace GreenshotPlugin.Core { /// Bitmap to make torn edge off /// Changed bitmap public static Bitmap CreateTornEdge(Bitmap sourceBitmap) { - Bitmap returnImage = CreateEmptyLike(sourceBitmap, Color.Empty); + Bitmap returnImage = CreateEmpty(sourceBitmap.Width, sourceBitmap.Height, PixelFormat.Format32bppArgb, Color.Empty, sourceBitmap.HorizontalResolution, sourceBitmap.VerticalResolution); using (GraphicsPath path = new GraphicsPath()) { Random random = new Random(); int regionWidth = 20;