📄 imagecolorsforindex.php3
字号:
<HTML>
<HEAD>
<TITLE>imagecolorsforindex</TITLE>
</HEAD>
<BODY>
<?
$image = imagecreatefromgif("xitami1.gif");
// get the color at (10,10)
$colorIndex = imagecolorat($image, 10, 10);
$colorParts = imagecolorsforindex($image, $colorIndex);
printf("RGB: (%d, %d, %d)",
$colorParts["red"],
$colorParts["green"],
$colorParts["blue"]);
?>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -