PHP Velho Oeste 2024

imagecreatefromtga

(PHP 7 >= 7.4.0, PHP 8)

imagecreatefromtga新しい画像をファイルあるいは URL から作成する

説明

imagecreatefromtga(string $filename): GdImage|false

imagecreatefromtga() は 指定されたファイルから、画像オブジェクトを返します。

パラメータ

filename

Truevision TGA 画像ファイルへのパス。

戻り値

成功した場合に画像オブジェクト、エラー時に false を返します。

変更履歴

バージョン 説明
8.0.0 成功時に、この関数は GdImage クラスのインスタンスを返すようになりました。 これより前のバージョンでは、 リソース を返していました。
add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top