php GD库画各种的图像函数:

如下:

1、画一个像素:imagesetpixed(int x,int y);

2、画矩形:imagerectange($res,$x,$y,$x1,$x2,$color);两个点实现画矩形

3、imagefilledrectange();参数和上面一样

4、画椭圆:

imageellipse($res,int x,int y,int cr,int cy,int color);资源,中心,宽度和高度

5、画一个字符串

imagestring($res,int fontsize,int x,int y,string,int color);

6、imagettftext($res,float size,float angle,int x,int y,int color,string fontpath,string text);

相关文章:

  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2021-08-22
  • 2022-02-11
  • 2022-12-23
猜你喜欢
  • 2021-09-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2021-07-04
  • 2022-12-23
相关资源
相似解决方案