Tag: magickwand

PlaneMylinder中有一个选项可以扭曲imageMagick来制作像下面的图像吗?

当我使用Plane2Cylinder失真时,我得到了如下图像。 但我希望效果像第二张图像。 请仔细检查我的代码。 local nelem = 1 — number of args local arg = ffi.new(“const double[?]”, nelem, {100}) — local methos = ffi.new(“const int”, 15) return handle_result(self, lib.MagickDistortImage(self.wand,13, nelem, arg, 1)) ffi.cdef([[ typedef void MagickWand; typedef void PixelWand; MagickBooleanType MagickDistortImage(MagickWand *wand, DistortMethod method, const size_t, const double *args, const MagickBooleanType bestfit); 更新:对于fred的脚本我使用下面的命令 bash -x ./cylinderize.sh […]