= 7.4.0, PHP 8)imagecreatefromtga — 由文件或 URL 創(chuàng)建一個(gè)新圖象。說明imagecreatefromtga(string $filename): GdImage|falseimagecreatefromtga">
(PHP 7 >= 7.4.0, PHP 8)
imagecreatefromtga — 由文件或 URL 創(chuàng)建一個(gè)新圖象。
imagecreatefromtga() returns an image object representing the image obtained from the given filename.
filename
Path to the Truevision TGA image.
成功后返回圖象對(duì)象,失敗后返回 false
。
版本 | 說明 |
---|---|
8.0.0 | On success, this function returns a GDImage instance now; previously, a 資源(resource) was returned. |