Page 1 of 1

C# Code for Frame, adding a 3D-like border ?

Posted: 2018-10-27T21:01:50-07:00
by GlennIM
Does anyone have the C# equivalent code for creating 3D Like Borders as shown at http://www.imagemagick.org/Usage/crop/#frame using the frame operator?

These specific command line options work but have no clue as to converting them to Magick.NET C# code:

D:\>magick imagetotest.jpg -frame 10x10 imagetotestframed.jpg
D:\>magick imagetotest.jpg -frame 15x6+2+2 imagetotestframed.jpg
D:\>magick imagetotest.jpg -mattecolor SkyBlue -frame 6x6+2+2 imagetotestframed.jpg
D:\>magick imagetotest.jpg -mattecolor Tomato -frame 10x10+5+5 imagetotestframed.jpg
D:\>magick imagetotest.jpg -frame 10x10+10+0 imagetotestframed.jpg
D:\>magick imagetotest.jpg -frame 10x10+6+0 imagetotestframed.jpg
D:\>magick imagetotest.jpg -frame 10x10+0+6 imagetotestframed.jpg
D:\>magick imagetotest.jpg -frame 10x10+0+10 imagetotestframed.jpg
D:\>magick imagetotest.jpg -alpha Set -mattecolor #CCC6 -frame 10x10+3+4 ( -size 2000x2000 plasma:fractal -normalize -blur 0x1 ) -compose DstOver -composite imagetotestframed.jpg

Can anyone help me?

Thanks in Advance

Re: C# Code for Frame, adding a 3D-like border ?

Posted: 2018-10-31T11:42:05-07:00
by GlennIM
UPDATE:

Never Mind. It was easy to figure out using the C# API