« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 26 for colors (0.002 sec.)
imagecolorexact — 指定した色のインデックスを取得する | PHP 8.3 12365
imagecolorexact (PHP 4, PHP 5, PHP 7, PHP 8) imagecolorexact — 指定した色のインデックスを取得する 説明 function imagecolorexact ( GdImage $image , int $red , int $green , int $blue ): int 画像パレット中の特定の色のインデックスを返します。 画 ... が期待されていました。 例 例1 GD ロゴからの色の取得 <?php // 画像を用意します $im = imagecreatefrompng ( './gdlogo.png' ); $colors = Array(); $colors [] = imagecolorexact ( $im , 255 , 0 , 0 ); $colors [] = imagecolorexact ( $im , 0 , 0 , 0 ); $colors [ ... ] = imagecolorexact ( $im , 255 , 255 , 255 ); $colors [] = imagecolorexact ( $im , 100 , 255 , 52 ); print_r ( $colors ); ?> 上の例の出力は、 たとえば以下のようになります。 Arr ... ックスを取得する 他のマニュアルの関連ページ DuckDB Syntax Highlighting DuckDB Friendly CLI Docker docker image Linux JM dir_colors(5) Vim usr_06 Linux JM lookbib(1) ...
https://man.mtool.work/php/8.3/function.imagecolorexact.html
imagecolorexactalpha — 指定した色+アルファ値のインデックスを取得する | PHP 8.3 12084
imagecolorexactalpha (PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8) imagecolorexactalpha — 指定した色+アルファ値のインデックスを取得する 説明 function imagecolorexactalpha ( GdImage $image , int $red , int $green , int $blue , int $alpha ): int イメ ... が期待されていました。 例 例1 GD ロゴからの色の取得 <?php // 画像を用意します $im = imagecreatefrompng ( './gdlogo.png' ); $colors = Array(); $colors [] = imagecolorexactalpha ( $im , 255 , 0 , 0 , 0 ); $colors [] = imagecolorexactalpha ( $im , 0 , 0 , ... 0 , 127 ); $colors [] = imagecolorexactalpha ( $im , 255 , 255 , 255 , 55 ); $colors [] = imagecolorexactalpha ( $im , 100 , 255 , 52 , 20 ); ... print_r ( $colors ); ?> 上の例の出力は、 たとえば以下のようになります。 Array ( [0] => 16711680 [1] => 2130706432 [2] => 939524095 [3] => 34 ...
https://man.mtool.work/php/8.3/function.imagecolorexactalpha.html
imagecolormatch — パレットイメージの色を True カラーイメージに近づける | PHP 8.... 11985
imagecolormatch (PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8) imagecolormatch — パレットイメージの色を True カラーイメージに近づける 説明 function imagecolormatch ( GdImage $image1 , GdImage $image2 ): true パレットイメージの色を True カラーイメージ ... frompng ( './gdlogo.png' ); $im2 = imagecreate ( imagesx ( $im1 ), imagesy ( $im1 )); // いくつかの色を $im2 に追加します $colors = Array(); $colors [] = imagecolorallocate ( $im2 , 255 , 36 , 74 ); $colors [] = imagecolorallocate ( $im2 , 40 , 0 , 240 ... ); $colors [] = imagecolorallocate ( $im2 , 82 , 100 , 255 ); $colors [] = imagecolorallocate ( $im2 , 84 , 63 , 44 ); // これらの色を ... ); ?> 参考 imagecreatetruecolor() - TrueColor イメージを新規に作成する 他のマニュアルの関連ページ Vim usr_06 Linux JM dir_colors(5) Linux JM dircolors(1) DuckDB Syntax Highlighting Docker docker image Linux JM hexdump(1) ...
https://man.mtool.work/php/8.3/function.imagecolormatch.html
Imagick::identifyFormat — 画像の詳細情報で文字列をフォーマットする | PHP 8.3 10480
Imagick::identifyFormat (PECL imagick 3 >= 3.3.0) Imagick::identifyFormat — 画像の詳細情報で文字列をフォーマットする 説明 public function Imagick::identifyFormat ( string $embedText ): string | false 埋め込まれたフォーマット文字を適切な画像 ... scape.php を参照してください。 パラメータ embedText フォーマットシーケンスを含む文字列。例: "Trim box: %@ number of unique colors: %k"。 戻り値 フォーマットされた文字列を返します。失敗した場合に false を返します 例 例1 Imagick::identifyFormat() <?php $ ... output = "Output of 'Trim box: %@ number of unique colors: %k' is: <br/>" ; $imagick = new \Imagick ( realpath ( "./images/artifact/mask.png" )); $output .= $imagick -> identifyFor ... mat ( "Trim box: %@ number of unique colors: %k" ); ?> 他のマニュアルの関連ページ Linux JM dir_colors(5) Linux JM fdformat(8) Linux JM manlint(1) DuckDB Full DuckDB S ...
https://man.mtool.work/php/8.3/imagick.identifyformat.html
imagecolorresolve — 指定した色または出来るだけ近い色のインデックスを得る | PHP ... 9637
imagecolorresolve (PHP 4, PHP 5, PHP 7, PHP 8) imagecolorresolve — 指定した色または出来るだけ近い色のインデックスを得る 説明 function imagecolorresolve ( GdImage $image , int $red , int $green , int $blue ): int この関数は、指定した色に関す ... 像からの色の取得 <?php // 画像を読み込みます $im = imagecreatefromgif ( 'phplogo.gif' ); // 最も近い色を画像から取得します $colors = array(); $colors [] = imagecolorresolve ( $im , 255 , 255 , 255 ); $colors [] = imagecolorresolve ( $im , 0 , 0 , 200 ); ... // 出力します print_r ( $colors ); ?> 上の例の出力は、 たとえば以下のようになります。 Array ( [0] => 89 [1] => 85 ) 参考 imagecolorclosest() - 指定した色に ...
https://man.mtool.work/php/8.3/function.imagecolorresolve.html
imagecolorresolvealpha — 指定した色+アルファ値または最も近い色のインデックスを... 9538
imagecolorresolvealpha (PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8) imagecolorresolvealpha — 指定した色+アルファ値または最も近い色のインデックスを取得する 説明 function imagecolorresolvealpha ( GdImage $image , int $red , int $green , int $blue , ... 像からの色の取得 <?php // 画像を読み込みます $im = imagecreatefromgif ( 'phplogo.gif' ); // 最も近い色を画像から取得します $colors = array(); $colors [] = imagecolorresolvealpha ( $im , 255 , 255 , 255 , 0 ); $colors [] = imagecolorresolvealpha ( $im , ... 0 , 0 , 200 , 127 ); // 出力します print_r ( $colors ); ?> 上の例の出力は、 たとえば以下のようになります。 Array ( [0] => 89 [1] => 85 ) 参考 imagecolorclosestalpha() - 指定し ...
https://man.mtool.work/php/8.3/function.imagecolorresolvealpha.html
imagecolorat — ピクセルの色のインデックスを取得する | PHP 8.3 8315
imagecolorat (PHP 4, PHP 5, PHP 7, PHP 8) imagecolorat — ピクセルの色のインデックスを取得する 説明 function imagecolorat ( GdImage $image , int $x , int $y ): int | false image で指定された画像上の 特定位置にあるピクセルの色のインデックスを ... & 0xFF ; var_dump ( $r , $g , $b ); ?> 上の例の出力は、 たとえば以下のようになります。 int(119) int(123) int(180) 例2 imagecolorsforindex() による可読形式の RGB 値 <?php $im = imagecreatefrompng ( "php.png" ); $rgb = imagecolorat ( $im , 10 , 15 ); $co ... lors = imagecolorsforindex ( $im , $rgb ); var_dump ( $colors ); ?> 上の例の出力は、 たとえば以下のようになります。 array(4) { ["red"]=> int( ... 119) ["green"]=> int(123) ["blue"]=> int(180) ["alpha"]=> int(127) } 参考 imagecolorset() - 指定したパレットインデックスの色を設定する imagecolorsforindex() - カラーインデックスからカラーを取得する imagesetpi ...
https://man.mtool.work/php/8.3/function.imagecolorat.html
wddx_serialize_vars — 変数を WDDX パケットにシリアライズする | PHP 8.3 7852
wddx_serialize_vars (PHP 4, PHP 5, PHP 7) wddx_serialize_vars — 変数を WDDX パケットにシリアライズする 警告 この機能は PHP 7.4.0 で 削除 されました。 説明 function wddx_serialize_vars ( mixed $var_name , mixed ...$var_names ): string 指定さ ... を返します。 例 例1 wddx_serialize_vars() の例 <?php $a = 1 ; $b = 5.5 ; $c = array( "blue" , "orange" , "violet" ); $d = "colors" ; $clvars = array( "c" , "d" ); echo wddx_serialize_vars ( "a" , "b" , $clvars ); ?> 上の例の出力は以下となります。 <wddx ... <array length='3'> <string>blue</string><string>orange</string><string>violet</string></array></var> <var name='d'><string>colors</string></var></struct></data></wddxPacket> 他のマニュアルの関連ページ Linux JM snmpbulkget(1) Django serialization Linux ...
https://man.mtool.work/php/8.3/function.wddx-serialize-vars.html
imagetruecolortopalette — TrueColor イメージをパレットイメージに変換する | PHP ... 7753
imagetruecolortopalette (PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8) imagetruecolortopalette — TrueColor イメージをパレットイメージに変換する 説明 function imagetruecolortopalette ( GdImage $image , bool $dither , int $num_colors ): bool imagetrue ... ディザーをかけることを指定します。 true の場合はディザーが行われます。 出力はぼやけますが、色の近似はより良くなります。 num_colors パレットに保持される最大の色数を設定します。 戻り値 成功した場合に true を、失敗した場合に false を返します。 変更履歴 バー ...
https://man.mtool.work/php/8.3/function.imagetruecolortopalette.html
wincache_ucache_add — 変数が既にキャッシュに存在しない場合にのみ変数をユーザー... 7753
wincache_ucache_add (PECL wincache >= 1.1.0) wincache_ucache_add — 変数が既にキャッシュに存在しない場合にのみ変数をユーザーキャッシュに追加する 説明 function wincache_ucache_add ( string $key , mixed $value , int $ttl = 0 ): bool function w ... 上の例の出力は以下となります。 bool(true) bool(false) string(3) "BAR" 例2 wincache_ucache_add() で key を配列にする例 <?php $colors_array = array( 'green' => '5' , 'Blue' => '6' , 'yellow' => '7' , 'cyan' => '8' ); var_dump ( wincache_ucache_add ( $color ... s_array )); var_dump ( wincache_ucache_add ( $colors_array )); var_dump ( wincache_ucache_get ( 'Blue' )); ?> 上の例の出力は以下となります。 array(0) { } array(4) { ["green"]= ...
https://man.mtool.work/php/8.3/function.wincache-ucache-add.html
PREV 1 2 3 NEXT