Replies: 1 comment 1 reply
-
Can you minimize this code sample to only your issue with Shadow? And I think it should be |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to use the Shadow command, but am struggling to find any examples. I have the following in powershell.
$arguments = @( 'convert', "wm_toes_wm.png", '-bordercolor', 'white', '-border', 1, '-bordercolor', 'black', '-border', 1, '-background', 'black', '(', '+clone', '-shadow', '80x5+10%', ')', '+swap', '-background', 'white', '-flatten', '-bordercolor', 'White', '-border', 'x20%+100', 'test.png' ) & magick.exe $arguments
I have tried
image.BorderColor = new MagickColor("White"); image.Border(1); image.BorderColor = new MagickColor("Black"); image.Border(1); image.BackgroundColor = new MagickColor("Black"); var image1 = image.Clone(); image1.Shadow(50, 50, 0.8, (Percentage)10); collection.Add(image); collection.Add(image1); var newimage = collection.Flatten(new MagickColor("white")); newimage.BorderColor = new MagickColor("White"); newimage.Border(25); newimage.Write("test.jpg");
with various different parameters on the shadow command, but I am at a loss!
Beta Was this translation helpful? Give feedback.
All reactions