哈希空间 Ctrl + F 进行搜索
首页 php手册中文版 CSS中文手册 哈希文档 Markdown在线工具

imagesetpixel

(PHP 4, PHP 5, PHP 7, PHP 8)

imagesetpixel — 画一个单一像素

说明

imagesetpixel(
    resource $image,
    int $x,
    int $y,
    int $color
): bool

imagesetpixel() 在 image 图像中用 color 颜色在 x,y 坐标(图像左上角为 0,0)上画一个点。

参见 imagecreatetruecolor() 和 imagecolorallocate()。

打开 哈希空间 微信小程序中查看更佳