日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > php >内容正文

php

php gd测试代码,PHP: GD - Manual

發布時間:2025/3/21 php 21 豆豆
生活随笔 收集整理的這篇文章主要介紹了 php gd测试代码,PHP: GD - Manual 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

gd_info — 取得當前安裝的 GD 庫的信息

image_type_to_mime_type — 取得 getimagesize,exif_read_data,exif_thumbnail,exif_imagetype

所返回的圖像類型的 MIME 類型

image2wbmp — 以 WBMP 格式將圖像輸出到瀏覽器或文件

imageaffine — 返回經過仿射變換后的圖像,剪切區域可選

imageaffinematrixconcat — Concatenate two affine transformation matrices

imageaffinematrixget — Get an affine transformation matrix

imageantialias — 是否使用抗鋸齒(antialias)功能

imagebmp — Output a BMP image to browser or file

imagechar — 水平地畫一個字符

imagecolorat — 取得某像素的顏色索引值

imagecolorclosest — 取得與指定的顏色最接近的顏色的索引值

imagecolorclosesthwb — 取得與給定顏色最接近的色度的黑白色的索引

imagecolormatch — 使一個圖像中調色板版本的顏色與真彩色版本更能匹配

imagecolorresolve — 取得指定顏色的索引值或有可能得到的最接近的替代值

imagecolorresolvealpha — 取得指定顏色 + alpha 的索引值或有可能得到的最接近的替代值

imagecolorset — 給指定調色板索引設定顏色

imagecolorstotal — 取得一幅圖像的調色板中顏色的數目

imageconvolution — 用系數 div 和 offset 申請一個 3x3 的卷積矩陣

imagecopy — 拷貝圖像的一部分

imagecreate — 新建一個基于調色板的圖像

imagecreatefrombmp — 由文件或 URL 創建一個新圖象。

imagecreatefromgd2 — 從 GD2 文件或 URL 新建一圖像

imagecreatefromgd2part — 從給定的 GD2 文件或 URL 中的部分新建一圖像

imagecreatefromgd — 從 GD 文件或 URL 新建一圖像

imagecreatefromgif — 由文件或 URL 創建一個新圖象。

imagecreatefromjpeg — 由文件或 URL 創建一個新圖象。

imagecreatefrompng — 由文件或 URL 創建一個新圖象。

imagecreatefromwbmp — 由文件或 URL 創建一個新圖象。

imagecreatefromwebp — 由文件或 URL 創建一個新圖象。

imagecreatefromxbm — 由文件或 URL 創建一個新圖象。

imagecreatefromxpm — 由文件或 URL 創建一個新圖象。

imagecrop — Crop an image to the given rectangle

imagecropauto — Crop an image automatically using one of the available modes

imageflip — Flips an image using a given mode

imageftbbox — 給出一個使用 FreeType 2 字體的文本框

imagefttext — 使用 FreeType 2 字體將文本寫入圖像

imagegammacorrect — 對 GD 圖像應用 gamma 修正

imagegd2 — 將 GD2 圖像輸出到瀏覽器或文件

imagegd — 將 GD 圖像輸出到瀏覽器或文件

imagegetclip — Get the clipping rectangle

imagegetinterpolation — Get the interpolation method

imagegif — 輸出圖象到瀏覽器或文件。

imagegrabscreen — Captures the whole screen

imagegrabwindow — Captures a window

imagejpeg — 輸出圖象到瀏覽器或文件。

imagelayereffect — 設定 alpha 混色標志以使用綁定的 libgd 分層效果

imageopenpolygon — Draws an open polygon

imagepalettecopy — 將調色板從一幅圖像拷貝到另一幅

imagepalettetotruecolor — Converts a palette based image to true color

imagepng — 以 PNG 格式將圖像輸出到瀏覽器或文件

imageresolution — Get or set the resolution of the image

imagerotate — 用給定角度旋轉圖像

imagesavealpha — 設置標記以在保存 PNG 圖像時保存完整的 alpha 通道信息(與單一透明色相反)

imagescale — Scale an image using the given new width and height

imagesetclip — Set the clipping rectangle

imagesetinterpolation — Set the interpolation method

imagestring — 水平地畫一行字符串

imagesx — 取得圖像寬度

imagesy — 取得圖像高度

imagettfbbox — 取得使用 TrueType 字體的文本的范圍

imagettftext — 用 TrueType 字體向圖像寫入文本

imagetypes — 返回當前 PHP 版本所支持的圖像類型

imagewbmp — 以 WBMP 格式將圖像輸出到瀏覽器或文件

imagewebp — 將 WebP 格式的圖像輸出到瀏覽器或文件

imagexbm — 將 XBM 圖像輸出到瀏覽器或文件

iptcembed — 將二進制 IPTC 數據嵌入到一幅 JPEG 圖像中

iptcparse — 將二進制 IPTC 塊解析為單個標記

jpeg2wbmp — 將 JPEG 圖像文件轉換為 WBMP 圖像文件

png2wbmp — 將 PNG 圖像文件轉換為 WBMP 圖像文件

總結

以上是生活随笔為你收集整理的php gd测试代码,PHP: GD - Manual的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。