Bubble Button or Cut Off Corners ?

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: 13
Joined: 2018-07-22T22:22:12-07:00
Authentication code: 1152

Bubble Button or Cut Off Corners ?

Post by GlennIM » 2018-07-22T23:13:49-07:00

Does anyone know how to achieve this in C#/.NET from https://www.imagemagick.org/Usage/thumbnails

Bubble Button

convert thumbnail.gif -fill gray50 -colorize 100% \
-raise 8 -normalize -blur 0x8 bubble_overlay.png
convert thumbnail.gif bubble_overlay.png \
-compose hardlight -composite bubble_button.png

Or...

https://www.imagemagick.org/Usage/thumb ... cutoff.png - https://www.imagemagick.org/Usage/thumbnails

convert thumbnail.gif -alpha set -compose DstOut \
\( -size 20x15 xc:none -draw "polygon 0,0 0,14 19,0" \
-write mpr:triangle +delete \) \
\( mpr:triangle \) -gravity northwest -composite \
\( mpr:triangle -flip \) -gravity southwest -composite \
\( mpr:triangle -flop \) -gravity northeast -composite \
\( mpr:triangle -rotate 180 \) -gravity southeast -composite \
corner_cutoff.png

Post Reply