Results of 1 - 1 of about 1 for LoadPNG (0.000 sec.)
- imagecreatefrompng — 新しい画像をファイルあるいは URL から作成する | PHP 8.3 9414
- imagecreatefrompng (PHP 4, PHP 5, PHP 7, PHP 8) imagecreatefrompng — 新しい画像をファイルあるいは URL から作成する 説明 function imagecreatefrompng ( string $filename ): GdImage | false imagecreatefrompng() は引数 filename から得られる画像を
... なりました。 これより前のバージョンでは、 resource を返していました。 例 例1 PNG の作成時のエラーを処理する例 <?php function LoadPNG ( $imgname ) { /* オープンします */ $im = @ imagecreatefrompng ( $imgname ); /* 失敗したかどうかを調べます */ if(! $im ) { ... ing ( $im , 1 , 5 , 5 , 'Error loading ' . $imgname , $tc ); } return $im ; } header ( 'Content-Type: image/png' ); $img = LoadPNG ( 'bogus.image' ); imagepng ( $img ); ?> 上の例の出力は、 たとえば以下のようになります。 他のマニュアルの関連ページ Linux ...
-
https://man.mtool.work/php/8.3/function.imagecreatefrompng.html
PREV
1
NEXT