how to draw semi-transparent rectangle in php?

前端 未结 2 963
失恋的感觉
失恋的感觉 2020-12-16 04:23

Here is an example what I would like to do:

\"enter

Here is the result:

<
2条回答
  •  一向
    一向 (楼主)
    2020-12-16 04:49

    You need to use http://php.net/manual/en/function.imagefilledrectangle.php, passing a color created with http://www.php.net/manual/en/function.imagecolorallocatealpha.php.

    As you can see, the example for http://php.net/manual/en/function.imagefilledrectangle.php is pratically what to you want to do.

提交回复
热议问题