mirror of
https://github.com/greenshot/greenshot
synced 2025-07-14 09:03:44 -07:00
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:
parent
3bbbc49c5e
commit
04eccba51a
1 changed files with 1 additions and 1 deletions
|
@ -325,7 +325,7 @@ namespace GreenshotPlugin.Core {
|
|||
/// <param name="sourceBitmap">Bitmap to make torn edge off</param>
|
||||
/// <returns>Changed bitmap</returns>
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue