Results of 1 - 10 of about 26 for imagestring (0.001 sec.)
- imagestring — 文字列を水平に描画する | PHP 8.3 14580
- imagestring (PHP 4, PHP 5, PHP 7, PHP 8) imagestring — 文字列を水平に描画する 説明 function imagestring ( GdImage $image , GdFont | int $font , int $x , int $y , string $string , int $color ): true 指定した座標に文字列 string を描画します。
... ラスのインスタンスを期待するようになりました。 これより前のバージョンでは、有効な gd resource が期待されていました。 例 例1 imagestring() の例 <?php // 100*30 の画像を生成します $im = imagecreate ( 100 , 30 ); // 白色の背景と青色のテキスト $bg = imagecoloral ... locate ( $im , 255 , 255 , 255 ); $textcolor = imagecolorallocate ( $im , 0 , 0 , 255 ); // 左上に文字列を描画します imagestring ( $im , 5 , 0 , 0 , "Hello world!" , $textcolor ); // 画像を出力します header ( "Content-type: image/png" ); imagepng ( $i ... m ); ?> 上の例の出力は、 たとえば以下のようになります。 参考 imagestringup() - 文字列を垂直に描画する imageloadfont() - 新しいフォントを読み込む imagettftext() - TrueType フォントを使用してテキス ...
-
https://man.mtool.work/php/8.3/function.imagestring.html
- imagewbmp — 画像をブラウザあるいはファイルに出力する | PHP 8.3 10117
- imagewbmp (PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8) imagewbmp — 画像をブラウザあるいはファイルに出力する 説明 function imagewbmp ( GdImage $image , resource | string | null $file = null , ? int $foreground_color = null ): bool imagewbmp() は、指
... してテキストを追加します $im = imagecreatetruecolor ( 120 , 20 ); $text_color = imagecolorallocate ( $im , 233 , 14 , 91 ); imagestring ( $im , 1 , 5 , 5 , 'A Simple Text String' , $text_color ); // content type ヘッダを設定します - ここでは image/vnd.wap.wb ... してテキストを追加します $im = imagecreatetruecolor ( 120 , 20 ); $text_color = imagecolorallocate ( $im , 233 , 14 , 91 ); imagestring ( $im , 1 , 5 , 5 , 'A Simple Text String' , $text_color ); // 画像を保存します imagewbmp ( $im , 'simpletext.wbmp' ); ?> ... してテキストを追加します $im = imagecreatetruecolor ( 120 , 20 ); $text_color = imagecolorallocate ( $im , 233 , 14 , 91 ); imagestring ( $im , 1 , 5 , 5 , 'A Simple Text String' , $text_color ); // content type ヘッダを設定します - ここでは image/vnd.wap.wb ...
-
https://man.mtool.work/php/8.3/function.imagewbmp.html
- imagejpeg — 画像をブラウザあるいはファイルに出力する | PHP 8.3 9918
- imagejpeg (PHP 4, PHP 5, PHP 7, PHP 8) imagejpeg — 画像をブラウザあるいはファイルに出力する 説明 function imagejpeg ( GdImage $image , resource | string | null $file = null , int $quality = -1 ): bool imagejpeg() は、画像 image から JPEG フ
... し、テキストを追加します $im = imagecreatetruecolor ( 120 , 20 ); $text_color = imagecolorallocate ( $im , 233 , 14 , 91 ); imagestring ( $im , 1 , 5 , 5 , 'A Simple Text String' , $text_color ); // content type ヘッダを、ここでは image/jpeg と設定します hea ... し、テキストを追加します $im = imagecreatetruecolor ( 120 , 20 ); $text_color = imagecolorallocate ( $im , 233 , 14 , 91 ); imagestring ( $im , 1 , 5 , 5 , 'A Simple Text String' , $text_color ); // 画像を 'simpletext.jpg' として保存します imagejpeg ( $im , ... し、テキストを追加します $im = imagecreatetruecolor ( 120 , 20 ); $text_color = imagecolorallocate ( $im , 233 , 14 , 91 ); imagestring ( $im , 1 , 5 , 5 , 'A Simple Text String' , $text_color ); // content type ヘッダを、ここでは image/jpeg と設定します hea ...
-
https://man.mtool.work/php/8.3/function.imagejpeg.html
- imagecopymerge による半透明なすかしの作成 | PHP 8.3 9736
- imagecopymerge() による半透明なすかしの作成 例1 imagecopymerge() による半透明なすかしの作成 <?php // スタンプと、それをすかしとして適用する写真を読み込みます $im = imagecreatefromjpeg ( 'photo.jpeg' ); // まず、スタンプ画像を GD で作成します
... magefilledrectangle ( $stamp , 0 , 0 , 99 , 69 , 0x0000FF ); imagefilledrectangle ( $stamp , 9 , 9 , 90 , 60 , 0xFFFFFF ); imagestring ( $stamp , 5 , 20 , 20 , 'libGD' , 0x0000FF ); imagestring ( $stamp , 3 , 20 , 40 , '(c) 2007-9' , 0x0000FF ); // スタンプ ...
-
https://man.mtool.work/php/8.3/image.examples.merged-watermark.html
- imageconvolution — div および offset の係数を使用し、3x3 の畳み込み配列を適用す... 9340
- 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 画像に
... ガウス分布のぼかし <?php $image = imagecreatetruecolor ( 180 , 40 ); // テキストを書き、画像にガウス分布のぼかしを適用します imagestring ( $image , 5 , 10 , 8 , 'Gaussian Blur Text' , 0x00ff00 ); $gaussian = array(array( 1.0 , 2.0 , 1.0 ), array( 2.0 , 4.0 , ... 2.0 ), array( 1.0 , 2.0 , 1.0 )); imageconvolution ( $image , $gaussian , 16 , 0 ); // 比較用にもう一度テキストを書きます imagestring ( $image , 5 , 10 , 18 , 'Gaussian Blur Text' , 0x00ff00 ); header ( 'Content-Type: image/png' ); imagepng ( $image , null ...
-
https://man.mtool.work/php/8.3/function.imageconvolution.html
- imageloadfont — 新しいフォントを読み込む | PHP 8.3 9141
- imageloadfont (PHP 4, PHP 5, PHP 7, PHP 8) imageloadfont — 新しいフォントを読み込む 説明 function imageloadfont ( string $filename ): GdFont | false imageloadfont() はユーザーが定義したビットマップを読み込み、 その ID を返します。 パラメータ
... ( $im , 0 , 0 , 49 , 19 , $white ); // gd フォントを読み込み 'Hello' を書き込みます $font = imageloadfont ( './04b.gdf' ); imagestring ( $im , $font , 0 , 0 , 'Hello' , $black ); // ブラウザに出力します header ( 'Content-type: image/png' ); imagepng ( $im ) ... ; ?> 参考 imagefontwidth() - フォントの幅を取得する imagefontheight() - フォントの高さを取得する imagestring() - 文字列を水平に描画する 他のマニュアルの関連ページ Python tkinter.font Linux JM grub-mkfont(1) Linux JM pfbtops(1) Linu ...
-
https://man.mtool.work/php/8.3/function.imageloadfont.html
- imagegd — GD イメージをブラウザまたはファイルに出力する | PHP 8.3 8959
- imagegd (PHP 4 >= 4.0.7, PHP 5, PHP 7, PHP 8) imagegd — GD イメージをブラウザまたはファイルに出力する 説明 function imagegd ( GdImage $image , ? string $file = null ): bool 指定された image を GDフォーマットで出力するか、保存します。 パラメ
... し、テキストを追加します $im = imagecreatetruecolor ( 120 , 20 ); $text_color = imagecolorallocate ( $im , 233 , 14 , 91 ); imagestring ( $im , 1 , 5 , 5 , "A Simple Text String" , $text_color ); // 画像を出力します imagegd ( $im ); ?> 例2 GD 画像の保存 <?ph ... し、テキストを追加します $im = imagecreatetruecolor ( 120 , 20 ); $text_color = imagecolorallocate ( $im , 233 , 14 , 91 ); imagestring ( $im , 1 , 5 , 5 , "A Simple Text String" , $text_color ); // GD 画像を保存します // GD 画像のファイル形式は .gd です。 h ...
-
https://man.mtool.work/php/8.3/function.imagegd.html
- imagegd2 — GD2 イメージをブラウザまたはファイルに出力する | PHP 8.3 8959
- imagegd2 (PHP 4 >= 4.0.7, PHP 5, PHP 7, PHP 8) imagegd2 — GD2 イメージをブラウザまたはファイルに出力する 説明 function imagegd2 ( GdImage $image , ? string $file = null , int $chunk_size = 128 , int $mode = IMG_GD2_RAW ): bool 指定された im
... し、テキストを追加します $im = imagecreatetruecolor ( 120 , 20 ); $text_color = imagecolorallocate ( $im , 233 , 14 , 91 ); imagestring ( $im , 1 , 5 , 5 , "A Simple Text String" , $text_color ); // 画像を出力します imagegd2 ( $im ); ?> 例2 GD2 画像の保存 <? ... し、テキストを追加します $im = imagecreatetruecolor ( 120 , 20 ); $text_color = imagecolorallocate ( $im , 233 , 14 , 91 ); imagestring ( $im , 1 , 5 , 5 , "A Simple Text String" , $text_color ); // GD2 画像を保存します // GD2 画像のファイル形式は .gd2 です。 ...
-
https://man.mtool.work/php/8.3/function.imagegd2.html
- imagexbm — XBM 画像をブラウザあるいはファイルに出力する | PHP 8.3 8959
- imagexbm (PHP 5, PHP 7, PHP 8) imagexbm — XBM 画像をブラウザあるいはファイルに出力する 説明 function imagexbm ( GdImage $image , ? string $filename , ? int $foreground_color = null ): bool imagewbmp() は、指定した image を XBM にして出力ある
... してテキストを追加します $im = imagecreatetruecolor ( 120 , 20 ); $text_color = imagecolorallocate ( $im , 233 , 14 , 91 ); imagestring ( $im , 1 , 5 , 5 , 'A Simple Text String' , $text_color ); // 画像を保存します imagexbm ( $im , 'simpletext.xbm' ); ?> 例 ... してテキストを追加します $im = imagecreatetruecolor ( 120 , 20 ); $text_color = imagecolorallocate ( $im , 233 , 14 , 91 ); imagestring ( $im , 1 , 5 , 5 , 'A Simple Text String' , $text_color ); // 別の前景色を設定します $foreground_color = imagecoloralloca ...
-
https://man.mtool.work/php/8.3/function.imagexbm.html
- imagecreatetruecolor — TrueColor イメージを新規に作成する | PHP 8.3 7984
- imagecreatetruecolor (PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8) imagecreatetruecolor — TrueColor イメージを新規に作成する 説明 function imagecreatetruecolor ( int $width , int $height ): GdImage | false imagecreatetruecolor() は、指定した大きさの
... ( 120 , 20 ) or die( 'Cannot Initialize new GD image stream' ); $text_color = imagecolorallocate ( $im , 233 , 14 , 91 ); imagestring ( $im , 1 , 5 , 5 , 'A Simple Text String' , $text_color ); imagepng ( $im ); ?> 上の例の出力は、 たとえば以下のようになり ...
-
https://man.mtool.work/php/8.3/function.imagecreatetruecolor.html