Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
tom_dl
Posts: 43 Joined: 2015-02-26T15:25:44+00:00
Authentication code: 6789
Post
by tom_dl » 2017-11-07T19:19:55+00:00
Magick.NET version 7.0.7.700-Q16-x64
I'm distorting an image with
Code: Select all
MagickImage.Distort(ImageMagick.DistortMethod, double[])
which is working fine, except I can't work out how to apply distort "options" like the following CLI versions:
or
What am I missing here?
dlemstra
Posts: 1570 Joined: 2013-05-04T22:28:54+00:00
Authentication code: 6789
Contact:
Post
by dlemstra » 2017-11-12T18:46:05+00:00
I just published a new release (7.1.0.0) that includes a new class called DistortSettings that you could use to set the viewport.
tom_dl
Posts: 43 Joined: 2015-02-26T15:25:44+00:00
Authentication code: 6789
Post
by tom_dl » 2017-11-14T11:47:47+00:00
That's awesome. Thanks for doing the work!
lq634254672
Posts: 5 Joined: 2018-07-07T04:08:17+00:00
Authentication code: 1152
Post
by lq634254672 » 2018-07-07T06:00:29+00:00
dlemstra wrote: ↑ 2017-11-12T18:46:05+00:00
I just published a new release (7.1.0.0) that includes a new class called DistortSettings that you could use to set the viewport.
How do I this in Magick++ using function? I am not find distortsetting class in magick++.
dlemstra
Posts: 1570 Joined: 2013-05-04T22:28:54+00:00
Authentication code: 6789
Contact:
Post
by dlemstra » 2018-07-07T09:02:47+00:00
You can do this (in C++):
Code: Select all
image.artifact("distort:viewport","your value");