国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

PHP? ??? ?? ??? ???? ??? ????.

?? ??? ???.

7.png

? ??? ??? ??? ????

?? ??? ?? ??? ? ????.

1. ??? ????

2. ??? ??? ? ??? ??? ?????

3. ??? ???

4. ??? ? ? ???

5. ? ?? ? ???

6. ? ?? ???? ???

7. ?? ??

8. ??? ??

1. ? ??? ???? ??? ???????. ???? ?? ??? ??? ?????.

//使用imagecreate函數(shù)創(chuàng)建圖片,返回資源
$img = imagecreate(500,500);

2. ???? ??? ? ??? ???? ??? ???? ??,

$顏色變量 = imagecolorallocate ( resource $圖片資源 , int $紅 , int $綠 , int $藍(lán) )

?? ???? ???, ??, ???? ????? ??? ???? ?? ?? 3?????. ? ? ?? ??? ???? ??? ???? ? ? ?? ?? ??? ?????.

??? imagecolorallocate? ?? ??? ???? ???? ? ???? ?????. ? ??? ??? ??? ?????.

??? ?? ? ???? ?? ??? ?? ??? ???? ?? ????.

? ??? ??? ???? ? ???

1. ??

2. ???

3. ???

4. ???

???? ?? ?? ??? ?? ???? ??? ?? ?? ??? ??? ?? ?????.

//紅
$red = imagecolorallocate($img, 255, 0, 0);
//綠
$green = imagecolorallocate($img, 0, 255, 0);
//藍(lán)
$blue = imagecolorallocate($img, 0, 0, 255);
//棕
$yellow = imagecolorallocate($img, 121, 72, 0);

???? ? ? ?? ?? ? ????? ??? ?? ????.

3. ??? ??? ???? ????.

imagefilledrectangle ( resource $圖片資源 , int $點(diǎn)1x軸, int $點(diǎn)1y軸 , int $點(diǎn)2x軸 , int $點(diǎn)2y軸 , int $color )

? ??? ????? ???? ?? ??? ??? ?????.

1. ?? x ??? y ??? ?????

2. ? ?? ??? ?? ? ????

3. ? ?? ?? ?? ??? ?? ?? ?? ??? ?? ????

? ??? ? ????.

document_2015-09-19_55fd0d5be46bb.png

? 1? ? 2? ?????? ?? ? ????. ??? ? ?? ???? ???? ???? ?? ? ????.

??? ??? ??? ???
1? ??? ???? x??? 0 ????, 1? ??? y?? ???? 0 ?????.

? 2? x?? ???? 500 ????, ? 2? y?? ???? 500 ?????.

4. ??? ? ?? ????

???? ????. ???? ??????.

? ?? ???? ??? 0? 0, 500? 500
? ?? ???? ??? 500? 0, 0? 500

imageline($img, 0, 0, 500, 500, $red);
imageline($img, 500, 0, 0, 500, $blue);

5. ? ?? ?? ????

bool imagefilledellipse ( resource $圖片資源 , int $圓心x , int $圓心y , int $圓的寬 , int $圓的高 , int $圓的顏色 )
imagefilledellipse($img, 250, 250, 200, 200, $yellow);

? ??? ???? ?? ?? ??? ???. ?? ?? ??? ??? ???. ??? ??? ???? ??? ???, ???? ??? ?????.

6. ? ?? ????? ?????

rree

??? ???? ??? ??????? ???????. ??? ?????.

7. ?? ??

imagefilledrectangle($img, 200, 200, 300, 300, $blue);

8.

bool imagejpeg ( resource $image [, string $filename])
?? ?? ??? ???????:
imagedestroy($img);

???? ??
||
<?php //創(chuàng)建圖片 $img = imagecreatetruecolor(500, 500); //分配顏色 $red = imagecolorallocate($img, 255, 0, 0); $green = imagecolorallocate($img, 0, 255, 0); $blue = imagecolorallocate($img, 0, 0, 255); $pur = imagecolorallocate($img, 255, 0, 255); $yellow = imagecolorallocate($img, 121, 72, 0); //填充背景 imagefilledrectangle($img, 0, 0, 500, 500, $green); //畫(huà)對(duì)角線(xiàn) imageline($img, 0, 0, 500, 500, $red); imageline($img, 500, 0, 0, 500, $blue); //畫(huà)圓 imagefilledellipse($img, 250, 250, 200, 200, $yellow); //圓中間畫(huà)矩形 imagefilledrectangle($img, 200, 200, 300, 300, $blue); //保存圖片,圖片名為haha.jpg imagejpeg($img, 'haha.jpg'); //銷(xiāo)毀資源 imagedestroy($img); ?>