imagecopymergegray
(PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8)
imagecopymergegray — 用灰度拷貝併合併圖像的一部分
說明
    imagecopymergegray(
resource
resource
int
int
int
int
int
int
int
): bool
   resource
$dst_im,resource
$src_im,int
$dst_x,int
$dst_y,int
$src_x,int
$src_y,int
$src_w,int
$src_h,int
$pct): bool
    將 src_im 影象中座標從
    src_x,src_y 
    開始,寬度為 src_w,高度為 src_h
    的一部分拷貝到
    dst_im 影象中座標為
    dst_x 和 dst_y
    的位置上。兩影象將根據 pct
    來決定合併程度,其值範圍從 0 到 100。當 pct = 0
    時,實際上什麼也沒做,當爲 100 時本函式和 imagecopy() 完全一樣。
   
本函式和 imagecopymerge() 完全一樣只除了合併時通過在拷貝操作前將目標畫素轉換為灰度級來保留了原色度。
注意:
本函式新增于 PHP 4.0.6。