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

Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
Post Reply
GlennIM
Posts: 23
Joined: 2018-07-22T22:22:12-07:00
Authentication code: 1152

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

Post 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
GlennIM
Posts: 23
Joined: 2018-07-22T22:22:12-07:00
Authentication code: 1152

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

Post by GlennIM »

UPDATE:

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