This project has moved. For the latest updates, please go here.

Torn Paper Edge Effect

Jun 3, 2015 at 10:42 PM
Hoping somone can help me. I am trying to translate this bit of code found here for the torn paper edge effect. I don't quite grasp the example code they have but am hoping someone might be able to translate this for me into C#

http://www.imagemagick.org/Usage/thumbnails/#torn

convert thumbnail.gif -bordercolor linen -border 8x8 \
      -background Linen  -gravity SouthEast -splice 10x10+0+0 \
      \( +clone -alpha extract -virtual-pixel black \
         -spread 10 -blur 0x3 -threshold 50% -spread 1 -blur 0x.7 \) \
      -alpha off -compose Copy_Opacity -composite \
      -gravity SouthEast -chop 10x10   torn_paper_corner.png
I have tried doing a masking layer but since the aspect ratio of the final image varies so much it is less than ideal.
Jun 4, 2015 at 3:28 AM
Think I figured out what I needed to do.

This gave me the effect I was looking for:
                           Paper.Border(10);
                            Paper.Spread(5);
                            Paper.Blur(2, 2);
                            Paper.Threshold(50);
                           Paper.Transparent(new MagickColor(Color.Black));