由檔案或 URL 建立一個新圖像。

imagecreatefromtga

(PHP 7 >= 7.4.0, PHP 8)

imagecreatefromtga由檔案或 URL 建立一個新圖像。

說明

imagecreatefromtga(string $filename): GdImage|false

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.

Leave a Reply

Your email address will not be published. Required fields are marked *