本文介绍了Imagemagick具有4(x,y)坐标的倾斜图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我有4个(x,y)坐标,我希望在下面给出地图图像。I have 4 (x,y) coordinates between which I want place image as example given below.整个图像必须放在这个区域内而不进行裁剪。The whole image must be placed within this area without cropping.推荐答案使用此800x600气球:Using this 800x600 balloon:您可以像这样使用Perspective Distort:convert balloon.jpg -matte -virtual-pixel transparent \ -distort Perspective '0,0,50,0 0,599,100,599 800,0,750,100 800,600,500,500' result.png参数中基本上有4对点,即There are basically 4 pairs of points in the parameters,i.e.Pt1X,Pt1Y,Pt1NewX,Pt1NewY Pt2X,Pt2Y,Pt2NewX,Pt2NewY Pt3X,Pt3Y,Pt3NewX,Pt3NewY Pt4X,Pt4Y,Pt4NewX,Pt4NewY因此上面的命令移动点 0,0 到 50,0 并将点 0,599 移动到 100,599 依此类推。So the command above moves point 0,0 to 50,0 and moves point 0,599 to 100,599 and so on.我已贴上标签每个红色的点,并绘制每个绿色移动的路径。I have labelled each of the points in red and drawn the path along which each one has moved in green. 这篇关于Imagemagick具有4(x,y)坐标的倾斜图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 09-06 04:39