今日の人気記事

  1. 配列を文字列に変換する - implode()
  2. 定数の基本構文

画像

スポンサーリンク

画像関連のPHP関数を紹介しています。関数の引数とその使い方をサンプルスクリプト付きで紹介しています。

画像をコピーし、リサイズ(拡大・縮小) - imagecopyresized()

プログラミング言語PHPで、画像をコピーし、リサイズ(拡大・縮小)する関数 imagecopyresized() を紹介します。 画像を編集する場合になどに利用します。 imagecopyresized 関数 bool […]

 

画像を指定した角度で回転 - imagerotate()

プログラミング言語PHPで、画像を指定した角度で回転する関数 imagerotate() を紹介します。 imagerotate 関数 resource imagerotate ( resource $img, floa […]

 

指定したファイルを画像リソースに - imagecreatefromjpeg()、imagecreatefrompng()

プログラミング言語PHPで、指定したファイル・URL をメモリ上の画像リソースに確保する関数 imagecreatefromjpeg()、imagecreatefrompng() を紹介します。 画像を編集する場合になど […]

 

画像に四角形を描画 - imagerectangle()

プログラミング言語PHPで、画像に四角形を描画する関数 imagerectangle() を紹介します。 imagerectangle 関数 bool imagerectangle ( resource $img, in […]

 

画像に多角形を描画 - imagepolygon()

プログラミング言語PHPで、画像に多角形を描画する関数 imagepolygon() を紹介します。 imagepolygon 関数 bool imagepolygon ( resource $image, array […]

 

画像に楕円を描画 - imagefilledellipse()

プログラミング言語PHPで、画像に楕円を描画する関数 imagefilledellipse() を紹介します。 imagefilledellipse 関数 bool imagefilledellipse ( resour […]

 

画像に円弧を描画 - imagearc()

プログラミング言語PHPで、画像に円弧を描画する関数 imagearc() を紹介します。 imagearc 関数 bool imagearc ( resource $img, int $x, int $y, int $ […]

 

画像で使う色をRGBで指定 - imagecolorallocate()

プログラミング言語PHPで、画像で使う色をRGBで指定する関数 imagecolorallocate() を紹介します。 imagecolorallocate 関数 int imagecolorallocate ( re […]

 

画像に直線を描画 - imageline()

プログラミング言語PHPで、画像に直線を描画する関数 imageline() を紹介します。 imageline 関数 bool imageline ( resource $image , int $x1 , int $ […]

 

GDのライブラリ情報を取得 - gd_info()

プログラミング言語PHPで、GDのライブラリ情報を取得する関数 gd_info() を紹介します。 GDとは、PHPスクリプトから画像を作成・編集するためにライブラリ群(PHPだけではなく C言語、Perl、Pascal […]

 

画像リソースをブラウザーに表示・ファイルに出力 - imagejpeg()、imagepng()

プログラミング言語PHPで、画像リソースをブラウザーに直接出力、あるいは画像ファイルに出力(作成)する関数 imagejpeg()、imagepng()を紹介します。 imagejpeg関数 bool imagejpeg […]

 

メモリ上に画像リソースを確保・破棄 - imagecreatetruecolor()、imagedestroy()

プログラミング言語PHPで、メモリ上に画像リソースを確保する関数 imagecreatetruecolor()、確保した画像リソースを破棄する関数 imagedestroy()を紹介します。 imagecreatetru […]

 

画像サイズ・形式を取得 - getimagesize()

プログラミング言語PHPで、指定した画像のサイズ・形式を取得する関数 getimagesize()を紹介します。 getimagesize関数 array getimagesize ( string $filename […]