Results of 1 - 10 of about 62 for imagepng (0.002 sec.)
- imagepng — PNG イメージをブラウザまたはファイルに出力する | PHP 8.3 12932
- imagepng (PHP 4, PHP 5, PHP 7, PHP 8) imagepng — PNG イメージをブラウザまたはファイルに出力する 説明 function imagepng ( GdImage $image , resource | string | null $file = null , int $quality = -1 , int $filters = -1 ): bool 指定した image か
... gd resource が期待されていました。 例 <?php $im = imagecreatefrompng ( "test.png" ); header ( 'Content-Type: image/png' ); imagepng ( $im ); ?> 参考 imagegif() - 画像をブラウザあるいはファイルに出力する imagewbmp() - 画像をブラウザあるいはファイルに出力す ...
-
https://man.mtool.work/php/8.3/function.imagepng.html
- 定義済み定数 | PHP 8.3 11877
- 定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 GD_VERSION ( string ) PHP をコンパイルしたときの GD のバージョン GD_MAJOR_VER
... mage_type_to_mime_type() と image_type_to_extension() でサポートされています。 PNG_NO_FILTER ( int ) 特別な PNG フィルタ。 imagepng() 関数で使用します。 PNG_FILTER_NONE ( int ) 特別な PNG フィルタ。 imagepng() 関数で使用します。 PNG_FILTER_SUB ( int ) 特 ... 別な PNG フィルタ。 imagepng() 関数で使用します。 PNG_FILTER_UP ( int ) 特別な PNG フィルタ。 imagepng() 関数で使用します。 PNG_FILTER_AVG ( int ) 特別 ... な PNG フィルタ。 imagepng() 関数で使用します。 PNG_FILTER_PAETH ( int ) 特別な PNG フィルタ。 imagepng() 関数で使用します。 PNG_ALL_FILTERS ( int ) ...
-
https://man.mtool.work/php/8.3/image.constants.html
- imagefilter — 画像にフィルタを適用する | PHP 8.3 11342
- imagefilter (PHP 5, PHP 7, PHP 8) imagefilter — 画像にフィルタを適用する 説明 function imagefilter ( GdImage $image , int $filter , array | int | float | bool ...$args ): bool imagefilter() は、指定したフィルタ filter を image に適用します。
... atefrompng ( 'dave.png' ); if( $im && imagefilter ( $im , IMG_FILTER_GRAYSCALE )) { echo 'Image converted to grayscale.' ; imagepng ( $im , 'dave.png' ); } else { echo 'Conversion to grayscale failed.' ; } ?> 例2 imagefilter() 輝度の例 <?php $im = imagec ... efrompng ( 'sean.png' ); if( $im && imagefilter ( $im , IMG_FILTER_BRIGHTNESS , 20 )) { echo 'Image brightness changed.' ; imagepng ( $im , 'sean.png' ); } else { echo 'Image brightness change failed.' ; } ?> 例3 imagefilter() 単色化の例 <?php $im = imag ... s green */ if( $im && imagefilter ( $im , IMG_FILTER_COLORIZE , 0 , 255 , 0 )) { echo 'Image successfully shaded green.' ; imagepng ( $im , 'philip.png' ); } else { echo 'Green shading failed.' ; } ?> 例4 imagefilter() での打ち消しの例 <?php // Define ou ...
-
https://man.mtool.work/php/8.3/function.imagefilter.html
- imagecreate — パレットを使用する新規画像を作成する | PHP 8.3 10027
- imagecreate (PHP 4, PHP 5, PHP 7, PHP 8) imagecreate — パレットを使用する新規画像を作成する 説明 function imagecreate ( int $width , int $height ): GdImage | false imagecreate() は、 指定した大きさの空の画像を表す画像 ID を返します。 一般に
... agecreatetruecolor() を使うことを推奨します。 より高品質な画像処理ができるからです。パレット形式の画像を出力したい場合は、 imagepng() や imagegif() で画像を保存する直前に imagetruecolortopalette() を呼ばなければいけません。 パラメータ width 画像の幅。 he ... olor = imagecolorallocate ( $im , 233 , 14 , 91 ); imagestring ( $im , 1 , 5 , 5 , "A Simple Text String" , $text_color ); imagepng ( $im ); ?> 上の例の出力は、 たとえば以下のようになります。 参考 imagecreatetruecolor() - TrueColor イメージを新規に作成す ...
-
https://man.mtool.work/php/8.3/function.imagecreate.html
- imagegif — 画像をブラウザあるいはファイルに出力する | PHP 8.3 10027
- imagegif (PHP 4, PHP 5, PHP 7, PHP 8) imagegif — 画像をブラウザあるいはファイルに出力する 説明 function imagegif ( GdImage $image , resource | string | null $file = null ): bool imagegif() は画像 image から file に GIF ファイルを作成します。
... jpeg' )) { // For JPEG header ( 'Content-Type: image/jpeg' ); imagejpeg ( $im , NULL , 100 ); } elseif( function_exists ( 'imagepng' )) { // For PNG header ( 'Content-Type: image/png' ); imagepng ( $im ); } elseif( function_exists ( 'imagewbmp' )) { // F ... ) { header ( 'Content-type: image/gif' ); imagegif ( $im ); } elseif( imagetypes () & IMG_JPG ) { /* ... etc. */ } ?> 参考 imagepng() - PNG イメージをブラウザまたはファイルに出力する imagewbmp() - 画像をブラウザあるいはファイルに出力する imagejpeg() - 画 ...
-
https://man.mtool.work/php/8.3/function.imagegif.html
- imageconvolution — div および offset の係数を使用し、3x3 の畳み込み配列を適用す... 9233
- imageconvolution (PHP 5 >= 5.1.0, PHP 7, PHP 8) imageconvolution — div および offset の係数を使用し、3x3 の畳み込み配列を適用する 説明 function imageconvolution ( GdImage $image , array $matrix , float $divisor , float $offset ): bool 画像に
... , - 1 , 0 ), array( 0 , 0 , - 1 )); imageconvolution ( $image , $emboss , 1 , 127 ); header ( 'Content-Type: image/png' ); imagepng ( $image , null , 9 ); ?> 上の例の出力は以下となります。 例2 ガウス分布のぼかし <?php $image = imagecreatetruecolor ( 180 ... ストを書きます imagestring ( $image , 5 , 10 , 18 , 'Gaussian Blur Text' , 0x00ff00 ); header ( 'Content-Type: image/png' ); imagepng ( $image , null , 9 ); ?> 上の例の出力は以下となります。 参考 imagefilter() - 画像にフィルタを適用する 他のマニュアルの関連 ...
-
https://man.mtool.work/php/8.3/function.imageconvolution.html
- imagedashedline — 破線を描画する | PHP 8.3 9233
- imagedashedline (PHP 4, PHP 5, PHP 7, PHP 8) imagedashedline — 破線を描画する 説明 function imagedashedline ( GdImage $image , int $x1 , int $y1 , int $x2 , int $y2 , int $color ): true これは古い関数です。代わりに imagesetstyle() と imagel
... , 0xFF , 0xFF , 0xFF ); // 縦の破線を描画します imagedashedline ( $im , 50 , 25 , 50 , 75 , $white ); // 画像を保存します imagepng ( $im , './dashedline.png' ); ?> 上の例の出力は、 たとえば以下のようになります。 例2 imagedashedline() のもうひとつの使用法 ... tstyle ( $im , $style ); // 破線を描画します imageline ( $im , 50 , 25 , 50 , 75 , IMG_COLOR_STYLED ); // 画像を保存します imagepng ( $im , './imageline.png' ); ?> 参考 imagesetstyle() - 線描画用のスタイルを設定する imageline() - 直線を描画する 他のマニュ ...
-
https://man.mtool.work/php/8.3/function.imagedashedline.html
- imagegrabwindow — ウィンドウをキャプチャする | PHP 8.3 9233
- imagegrabwindow (PHP 5 >= 5.2.2, PHP 7, PHP 8) imagegrabwindow — ウィンドウをキャプチャする 説明 function imagegrabwindow ( int $handle , bool $client_area = false ): GdImage | false ウィンドウあるいはそのクライアント領域のキャプチャを、 ウ
... tion" ); $handle = $browser -> HWND ; $browser -> Visible = true ; $im = imagegrabwindow ( $handle ); $browser -> Quit (); imagepng ( $im , "iesnap.png" ); ?> ウィンドウ (ここでは IE) の中身のキャプチャを行います。 <?php $browser = new COM ( "InternetExp ... ? */ while ( $browser -> Busy ) { com_message_pump ( 4000 ); } $im = imagegrabwindow ( $handle , 0 ); $browser -> Quit (); imagepng ( $im , "iesnap.png" ); ?> 参考 imagegrabscreen() - 画面全体をキャプチャする 他のマニュアルの関連ページ Linux JM get_threa ...
-
https://man.mtool.work/php/8.3/function.imagegrabwindow.html
- image_type_to_extension — 画像形式からファイルの拡張子を取得する | PHP 8.3 7398
- image_type_to_extension (PHP 5 >= 5.2.0, PHP 7, PHP 8) image_type_to_extension — 画像形式からファイルの拡張子を取得する 説明 function image_type_to_extension ( int $image_type , bool $include_dot = true ): string | false 指定した定数 IMAGET
... _to_extension() の例 <?php // 画像のインスタンスを作成します $im = imagecreatetruecolor ( 100 , 100 ); // 画像を保存します imagepng ( $im , './test' . image_type_to_extension ( IMAGETYPE_PNG )); ?> 注意 注意 : この関数は、GD 画像ライブラリは必要ありません ...
-
https://man.mtool.work/php/8.3/function.image-type-to-extension.html
- imagecreatetruecolor — TrueColor イメージを新規に作成する | PHP 8.3 7398
- imagecreatetruecolor (PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8) imagecreatetruecolor — TrueColor イメージを新規に作成する 説明 function imagecreatetruecolor ( int $width , int $height ): GdImage | false imagecreatetruecolor() は、指定した大きさの
... olor = imagecolorallocate ( $im , 233 , 14 , 91 ); imagestring ( $im , 1 , 5 , 5 , 'A Simple Text String' , $text_color ); imagepng ( $im ); ?> 上の例の出力は、 たとえば以下のようになります。 参考 imagecreate() - パレットを使用する新規画像を作成する 他の ...
-
https://man.mtool.work/php/8.3/function.imagecreatetruecolor.html