Page 1 of 1
Equivalent of distort:viewport=WxH+X+Y
Posted: 2017-11-07T12:19:55-07:00
by tom_dl
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?
Re: Equivalent of distort:viewport=WxH+X+Y
Posted: 2017-11-12T11:46:05-07:00
by dlemstra
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.
Re: Equivalent of distort:viewport=WxH+X+Y
Posted: 2017-11-14T04:47:47-07:00
by tom_dl
That's awesome. Thanks for doing the work!
Re: Equivalent of distort:viewport=WxH+X+Y
Posted: 2018-07-06T23:00:29-07:00
by lq634254672
dlemstra wrote: ↑2017-11-12T11:46:05-07: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++.
Re: Equivalent of distort:viewport=WxH+X+Y
Posted: 2018-07-07T02:02:47-07:00
by dlemstra
You can do this (in C++):
Code: Select all
image.artifact("distort:viewport","your value");