Results of 1 - 10 of about 17 for imagecreate (0.001 sec.)
- imagecreate — パレットを使用する新規画像を作成する | PHP 8.3 15018
- imagecreate (PHP 4, PHP 5, PHP 7, PHP 8) imagecreate — パレットを使用する新規画像を作成する 説明 function imagecreate ( int $width , int $height ): GdImage | false imagecreate() は、 指定した大きさの空の画像を表す画像 ID を返します。 一般に
... 、 imagecreate() よりは imagecreatetruecolor() を使うことを推奨します。 より高品質な画像処理ができるからです。パレット形式の画像を出力した ... を返していました。 例 例1 新しい GD 画像ストリームの作成および画像の出力 <?php header ( "Content-Type: image/png" ); $im = @ imagecreate ( 110 , 20 ) or die( "Cannot Initialize new GD image stream" ); $background_color = imagecolorallocate ( $im , 0 , 0 , 0 ) ... 5 , 5 , "A Simple Text String" , $text_color ); imagepng ( $im ); ?> 上の例の出力は、 たとえば以下のようになります。 参考 imagecreatetruecolor() - TrueColor イメージを新規に作成する ...
-
https://man.mtool.work/php/8.3/function.imagecreate.html
- imagepalettecopy — あるイメージから他のイメージにパレットをコピーする | PHP 8.3 9742
- imagepalettecopy (PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8) imagepalettecopy — あるイメージから他のイメージにパレットをコピーする 説明 function imagepalettecopy ( GdImage $dst , GdImage $src ): void imagepalettecopy() は、パレットを src から dst
... ョンでは、 resource を期待していました。 例 例1 imagepalettecopy() の例 <?php // 2 つのパレット画像を作成します $palette1 = imagecreate ( 100 , 100 ); $palette2 = imagecreate ( 100 , 100 ); // 最初のパレット画像の背景色を // 緑に設定します $green = imagecolo ...
-
https://man.mtool.work/php/8.3/function.imagepalettecopy.html
- imagepalettetotruecolor — パレット形式の画像を true color に変換する | PHP 8.3 9362
- imagepalettetotruecolor (PHP 5 >= 5.5.0, PHP 7, PHP 8) imagepalettetotruecolor — パレット形式の画像を true color に変換する 説明 function imagepalettetotruecolor ( GdImage $image ): bool imagecreate() のような関数で作ったパレット形式の画像を
... 、 imagecreatetruecolor() で作るような true color 形式に変換します。 パラメータ image imagecreatetruecolor() のような画像作成関数が返す G ... tetotruecolor' )) { function imagepalettetotruecolor (& $src ) { if( imageistruecolor ( $src )) { return( true ); } $dst = imagecreatetruecolor ( imagesx ( $src ), imagesy ( $src )); imagecopy ( $dst , $src , 0 , 0 , 0 , 0 , imagesx ( $src ), imagesy ( $src ... eof($im) = ' . ( imageistruecolor ( $im ) ? 'true color' : 'palette' ), PHP_EOL ; }; // パレット形式の画像を作ります $im = imagecreate ( 100 , 100 ); $typeof (); // true color に変換します imagepalettetotruecolor ( $im ); $typeof (); ?> 上の例の出力は以下と ...
-
https://man.mtool.work/php/8.3/function.imagepalettetotruecolor.html
- imagecolorallocate — 画像で使用する色を作成する | PHP 8.3 9224
- imagecolorallocate (PHP 4, PHP 5, PHP 7, PHP 8) imagecolorallocate — 画像で使用する色を作成する 説明 function imagecolorallocate ( GdImage $image , int $red , int $green , int $blue ): int | false 指定した RGB を配色とする色の ID を返します
... する各々の色を作成する際にコールする必要があります。 注意 : imagecolorallocate() の最初のコールで パレットをもとにした画像 ( imagecreate() を使用して作成した画像) で背景色がセットされます。 パラメータ image imagecreatetruecolor() のような画像作成関数が返す Gd ... ました。 これより前のバージョンでは、有効な gd resource が期待されていました。 例 例1 imagecolorallocate() の例 <?php $im = imagecreate ( 100 , 100 ); // 背景色を赤にします $background = imagecolorallocate ( $im , 255 , 0 , 0 ); // その他の色を設定します $wh ...
-
https://man.mtool.work/php/8.3/function.imagecolorallocate.html
- imagecreatetruecolor — TrueColor イメージを新規に作成する | PHP 8.3 8328
- imagecreatetruecolor (PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8) imagecreatetruecolor — TrueColor イメージを新規に作成する 説明 function imagecreatetruecolor ( int $width , int $height ): GdImage | false imagecreatetruecolor() は、指定した大きさの
... ていました。 例 例1 新規 GD イメージストリームの作成およびイメージの出力 <?php header ( 'Content-Type: image/png' ); $im = @ imagecreatetruecolor ( 120 , 20 ) or die( 'Cannot Initialize new GD image stream' ); $text_color = imagecolorallocate ( $im , 233 , 14 ... 5 , 5 , 'A Simple Text String' , $text_color ); imagepng ( $im ); ?> 上の例の出力は、 たとえば以下のようになります。 参考 imagecreate() - パレットを使用する新規画像を作成する 他のマニュアルの関連ページ Docker docker image Python calendar DuckDB Full ...
-
https://man.mtool.work/php/8.3/function.imagecreatetruecolor.html
- imagegetclip — 長方形を切り取り、画像として取得する | PHP 8.3 8328
- imagegetclip (PHP 7 >= 7.2.0, PHP 8) imagegetclip — 長方形を切り取り、画像として取得する 説明 function imagegetclip ( GdImage $image ): array imagegetclip() 関数は、現在切り取っている長方形を取得します。 つまり、ピクセルが存在しない状態でな
... ければ描画されます。 パラメータ image imagecreatetruecolor() のような画像作成関数が返す GdImage オブジェクト。 戻り値 この関数は、切り取っている長方形の座標を配列で返し、 次 ... esource が期待されていました。 例 例1 imagegetclip() の例 切り取る範囲を設定し、長方形のクリップを取得します。 <?php $im = imagecreate ( 100 , 100 ); imagesetclip ( $im , 10 , 10 , 89 , 89 ); print_r ( imagegetclip ( $im )); 上の例の出力は以下となります。 A ...
-
https://man.mtool.work/php/8.3/function.imagegetclip.html
- imagecolormatch — パレットイメージの色を True カラーイメージに近づける | PHP 8.... 8190
- imagecolormatch (PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8) imagecolormatch — パレットイメージの色を True カラーイメージに近づける 説明 function imagecolormatch ( GdImage $image1 , GdImage $image2 ): true パレットイメージの色を True カラーイメージ
... は、 resource が期待されていました。 例 例1 imagecolormatch() の例 <?php // true color 画像とパレット画像を用意します $im1 = imagecreatefrompng ( './gdlogo.png' ); $im2 = imagecreate ( imagesx ( $im1 ), imagesy ( $im1 )); // いくつかの色を $im2 に追加します $ ... allocate ( $im2 , 84 , 63 , 44 ); // これらの色を true color 画像にマッチさせます imagecolormatch ( $im1 , $im2 ); ?> 参考 imagecreatetruecolor() - TrueColor イメージを新規に作成する 他のマニュアルの関連ページ Vim usr_06 Linux JM dir_colors(5) Linux JM dirc ...
-
https://man.mtool.work/php/8.3/function.imagecolormatch.html
- imagechar — 水平に文字を描画する | PHP 8.3 8069
- imagechar (PHP 4, PHP 5, PHP 7, PHP 8) imagechar — 水平に文字を描画する 説明 function imagechar ( GdImage $image , GdFont | int $font , int $x , int $y , string $char , int $color ): true imagechar() は、画像 im 上の座標 x , y (左上が 0, 0)
... に color 色で char の最初の文字を描画します。 パラメータ image imagecreatetruecolor() のような画像作成関数が返す GdImage オブジェクト。 font latin2 エンコーディングの組み込みのフォントの場合は 1, 2 ... ようになりました。 これより前のバージョンでは、有効な gd resource が期待されていました。 例 例1 imagechar() の例 <?php $im = imagecreate ( 100 , 100 ); $string = 'PHP' ; $bg = imagecolorallocate ( $im , 255 , 255 , 255 ); $black = imagecolorallocate ( $im , 0 ...
-
https://man.mtool.work/php/8.3/function.imagechar.html
- imagecharup — 垂直に文字を描画する | PHP 8.3 8069
- imagecharup (PHP 4, PHP 5, PHP 7, PHP 8) imagecharup — 垂直に文字を描画する 説明 function imagecharup ( GdImage $image , GdFont | int $font , int $x , int $y , string $char , int $color ): true 指定した画像 image の指定した位置に、 文字 cha
... r を垂直に描画します。 パラメータ image imagecreatetruecolor() のような画像作成関数が返す GdImage オブジェクト。 font latin2 エンコーディングの組み込みのフォントの場合は 1, 2 ... うになりました。 これより前のバージョンでは、有効な gd resource が期待されていました。 例 例1 imagecharup() の例 <?php $im = imagecreate ( 100 , 100 ); $string = 'Note that the first letter is a N' ; $bg = imagecolorallocate ( $im , 255 , 255 , 255 ); $black ...
-
https://man.mtool.work/php/8.3/function.imagecharup.html
- imagecolorset — 指定したパレットインデックスの色を設定する | PHP 8.3 8069
- imagecolorset (PHP 4, PHP 5, PHP 7, PHP 8) imagecolorset — 指定したパレットインデックスの色を設定する 説明 function imagecolorset ( GdImage $image , int $color , int $red , int $green , int $blue , int $alpha = 0 ): ? false この関数は、パレ
... するオーバーヘッドなしに パレット上の色を使用する画像をぬりつぶしたような効果を得る ことができ、便利です。 パラメータ image imagecreatetruecolor() のような画像作成関数が返す GdImage オブジェクト。 color パレットのインデックス。 red 赤コンポーネントの値。 gre ... ジョンでは、有効な gd resource が期待されていました。 例 例1 imagecolorset() の例 <?php // 300x100 の画像を作成します $im = imagecreate ( 300 , 100 ); // 背景色を赤に設定します imagecolorallocate ( $im , 255 , 0 , 0 ); // 背景の色インデックスを取得します $bg ...
-
https://man.mtool.work/php/8.3/function.imagecolorset.html