函数名称:GmagickPixel::__construct()
函数描述:GmagickPixel::__construct() 是用于创建一个新的 GmagickPixel 对象的构造函数。GmagickPixel 类用于表示图像像素的对象。
用法:
public GmagickPixel::__construct ([ string $color = NULL ] )
参数:
返回值:无返回值。
示例:
// 创建一个红色的像素对象
$pixel = new GmagickPixel("red");
// 创建一个半透明的蓝色像素对象
$pixel = new GmagickPixel("rgba(0,0,255,0.5)");
// 创建一个黑色的像素对象
$pixel = new GmagickPixel("#000000");
注意事项: