imagecreatefromtga
(PHP 7 >= 7.4.0, PHP 8)
imagecreatefromtga — 由檔案或 URL 建立一個新圖像。
說明
imagecreatefromtga() returns an image object representing the image obtained from the given filename.
參數
-
filename
-
Path to the Truevision TGA image.
返回值
成功后返回圖像對像,失敗后返回 false
。
更新日誌
版本 | 說明 |
---|---|
8.0.0 | On success, this function returns a GDImage instance now; previously, a 資源(resource) was returned. |