Rounded corners in C#/Magick.NET
Posted: 2017-06-03T15:38:05-07:00
I've researched this quite extensively, but the Magick.NET documentation is lacking; and there aren't a great deal of examples around t'internet/stackoverflow. Could one of you wizards please assist in converting the following ImageMagick command to C#/.NET?
I've tried, but can't seem to get anywhere! mainly because of confusing naming differences between command line and the c# implementation.
Simply looking to take a jpg or png image, (a portrait/head shot), crop it to transparent circle, and export/save as png.
(This was taken from: http://www.imagemagick.org/Usage/thumbnails/#rounded )
Your time and expertise are much appreciated!
I've tried, but can't seem to get anywhere! mainly because of confusing naming differences between command line and the c# implementation.
Simply looking to take a jpg or png image, (a portrait/head shot), crop it to transparent circle, and export/save as png.
Code: Select all
convert thumbnail.gif -alpha set \
\( +clone -distort DePolar 0 \
-virtual-pixel HorizontalTile -background None -distort Polar 0 \) \
-compose Dst_In -composite -trim +repage circle_masked.png
Your time and expertise are much appreciated!