[php]imagearc — 畫橢圓弧


官方範例
<?php
// 創建一個 200X200 的圖像
$img = imagecreatetruecolor(200, 200);
// 分配顏色
$white = imagecolorallocate($img, 255, 255, 255);
$black = imagecolorallocate($img, 0, 0, 0);
// 畫一個黑色的圓
imagearc($img, 100, 100, 150, 150, 0, 360, $black);
// 將圖像輸出到瀏覽器
header("Content-type: image/png");
imagepng($img);
// 釋放內存
imagedestroy($img);
?>

arrow
arrow
    全站熱搜

    stockwfj3 發表在 痞客邦 留言(0) 人氣()