<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                PHP顏色或圖像填充及不同填充方式,先來熟悉幾個函數: 1、imagefill($image, $x, $y, $color): 本函數將圖片坐標 (x,y) 所在的區域著色。參數 $color 表示欲涂上的顏色。 2、imagecolorallocate($image, $red, $green, $blue): 本函數用戶圖像著色,后面三個參數分別代表紅、綠、藍三原色是色值。 3、imagefilltoborder($image, $x, $y, $border, $color): 本函數將圖片中指定的顏色做為邊界,著色在其中的封閉區域之中。參數 x、y 為著色區內的坐標,原點 (0,0) 為圖形的左上角。參數 border 為顏色值,表填入顏色的邊界范圍。參數 col 表示欲涂上的顏色。 簡單的說就是,給某一塊畫布的除$x、$y之外的其他區域著色。 4、imagecolorat($image, $x, $y): 本函數可取得圖形中某指定點的顏色索引值 (index)。 5、imagecopy($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h): 將 src_im 圖像中坐標從 src_x,src_y 開始,寬度為 src_w,高度為 src_h 的一部分拷貝到 dst_im 圖像中坐標為 dst_x 和 dst_y 的位置上。 6、imagecolorsforindex($image, $index): 本函數返回一個具有 red,green,blue 和 alpha 的鍵名的關聯數組,包含了指定顏色索引的相應的值。意思就是:imagecolorat()函數取得的10進制索引顏色值$index,通過這個函數,可以返回一個包括red、green、blue、alpha鍵名的關聯數組。相當于把十進制的色值轉換成十六進制的色值,方便使用! $img = imagecreatefromjpeg('test.jpg'); $indexColor = imagecolorat($img, 20, 20); $index = imagecolorsforindex($img, $indexColor); $red = $index['red']; $green = $index['green']; $blue = $index['blue']; $img1 = imagecreatetruecolor(100, 100); $color = imagecolorallocate($img1, $red, $green, $blue); imagefill($img1, 0, 0, $color); header('Content-type:image/jpeg'); imagejpeg($img1); 實例代碼如下: $img = imagecreatetruecolor(300, 300); $red = imagecolorallocate($img, 255, 0, 0); $alpha_color = imagecolorallocatealpha($img, 110, 20, 121, 100); imagefill($img, 0, 0, $alpha_color); $png = imagecreatefrompng('daiwang.png'); imagecopy($png, $img, 0, 0, 100, 100, 300, 300); header('Content-type:image/jpeg'); imagejpeg($png); 以上是除$border之外的區域著色。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看