-
|
I was working on a small program that bends the image, but I just couldn't seem to find any way to fill the following image to a new shape. Thanks in advance!
|
Beta Was this translation helpful? Give feedback.
Answered by
dlemstra
Apr 30, 2021
Replies: 1 comment
-
|
You can use the using (var image = new MagickImage("input.jpg"))
{
// Make the new pixels transparent
image.VirtualPixelMethod = VirtualPixelMethod.Transparent;
// You probably need to tweek the value below.
image.Distort(DistortMethod.Arc, 50);
image.Write("output.jpg");
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
simasio
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the
Distortmethod for this: