Fixed torn edge, used wrong CreateEmpty...

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1802 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-04-19 07:42:14 +00:00
parent 3bbbc49c5e
commit 04eccba51a

View file

@ -325,7 +325,7 @@ namespace GreenshotPlugin.Core {
/// <param name="sourceBitmap">Bitmap to make torn edge off</param> /// <param name="sourceBitmap">Bitmap to make torn edge off</param>
/// <returns>Changed bitmap</returns> /// <returns>Changed bitmap</returns>
public static Bitmap CreateTornEdge(Bitmap sourceBitmap) { 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()) { using (GraphicsPath path = new GraphicsPath()) {
Random random = new Random(); Random random = new Random();
int regionWidth = 20; int regionWidth = 20;