PHP GD:绘制填充路径?
有人知道在PHP GD中绘制填充路径的方法吗 通过反复调用PHP GD:绘制填充路径?,php,image,image-processing,path,gd,Php,Image,Image Processing,Path,Gd,有人知道在PHP GD中绘制填充路径的方法吗 通过反复调用imageline连接路径点,我可以毫无问题地绘制轮廓: 不过,填充它看起来像下面这样,我不确定GD是否提供了填充非平凡形状的任何明显方法: 您应该使用 那怎么办?太棒了-这是一个答案而不是评论。如果你把它贴上去作为答复,我会接受的。 imagefilledpolygon — Draw a filled polygon Description bool imagefilledpolygon ( resource $image , a
imageline
连接路径点,我可以毫无问题地绘制轮廓:
不过,填充它看起来像下面这样,我不确定GD是否提供了填充非平凡形状的任何明显方法:
您应该使用
那怎么办?太棒了-这是一个答案而不是评论。如果你把它贴上去作为答复,我会接受的。
imagefilledpolygon — Draw a filled polygon
Description
bool imagefilledpolygon ( resource $image , array $points , int $num_points , int $color )
imagefilledpolygon() creates a filled polygon in the given image.