« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 15 for Distance (0.012 sec.)
この色と別の色の差を調べる 12469
« ImagickPixel::isPixelSimilarQuantum ImagickPixel::setColor » PHP Manual ImagickPixel この色と別の色の差を調べる 検索 ImagickPixel::isSimilar (PECL imagick 2, PECL imagick 3) ImagickPixel::isSimilar — この色と別の色の差を調べる 説明 public ... り値 成功した場合に true を返します。 例 例1 ImagickPixel::isSimilar() <?php // The tests below are written with the maximum distance expressed as 255 // so we need to scale them by the square root of 3 - the diagonal length // of a unit cube. $root3 = 1.7 ... , true ],); $output = "<table width='100%' class='infoTable'><thead> <tr> <th> Color 1 </th> <th> Color 2 </th> <th> Test distance * 255 </th> <th> Is within distance </th> </tr> </thead>" ; $output .= "<tbody>" ; foreach ( $tests as $testInfo ) { $colo ... r1 = $testInfo [ 0 ]; $color2 = $testInfo [ 1 ]; $distance = $testInfo [ 2 ]; $expectation = $testInfo [ 3 ]; $testDistance = ( $distance / 255.0 ); $color1Pixel = new \ImagickPixel ...
https://man.mtool.work/php/8.3/imagickpixel.issimilar.html
この色と別の色の差を調べる 12469
« ImagickPixel::isPixelSimilarQuantum ImagickPixel::setColor » PHP Manual ImagickPixel この色と別の色の差を調べる 検索 ImagickPixel::isSimilar (PECL imagick 2, PECL imagick 3) ImagickPixel::isSimilar — この色と別の色の差を調べる 説明 public ... り値 成功した場合に true を返します。 例 例1 ImagickPixel::isSimilar() <?php // The tests below are written with the maximum distance expressed as 255 // so we need to scale them by the square root of 3 - the diagonal length // of a unit cube. $root3 = 1.7 ... , true ],); $output = "<table width='100%' class='infoTable'><thead> <tr> <th> Color 1 </th> <th> Color 2 </th> <th> Test distance * 255 </th> <th> Is within distance </th> </tr> </thead>" ; $output .= "<tbody>" ; foreach ( $tests as $testInfo ) { $colo ... r1 = $testInfo [ 0 ]; $color2 = $testInfo [ 1 ]; $distance = $testInfo [ 2 ]; $expectation = $testInfo [ 3 ]; $testDistance = ( $distance / 255.0 ); $color1Pixel = new \ImagickPixel ...
https://man.mtool.work/php/8.3/imagickpixel.issimilar.html
指定されたモルフォロジーメソッドに従い、ユーザー指定のカーネルを画像に適用する 9787
« Imagick::morphImages Imagick::mosaicImages » PHP Manual Imagick 指定されたモルフォロジーメソッドに従い、ユーザー指定のカーネルを画像に適用する 検索 Imagick::morphology (PECL imagick 3 >= 3.3.0) Imagick::morphology — 指定されたモルフォロジ ... TY , 4 , $kernel ); header ( "Content-Type: image/png" ); echo $canvas -> getImageBlob (); ?> 例7 Chebyshev カーネルによる Distance Imagick::morphology() <?php $canvas = $this -> getCharacterOutline (); $kernel = \ImagickKernel :: fromBuiltIn ( \Imagick ... :: KERNEL_CHEBYSHEV , "3" ); $canvas -> morphology ( \Imagick :: MORPHOLOGY_DISTANCE , 3 , $kernel ); $canvas -> autoLevelImage (); header ( "Content-Type: image/png" ); echo $canvas -> getImageBlob (); ?> 例 ... 8 Manhattan カーネルによる Distance Imagick::morphology() <?php $canvas = $this -> getCharacterOutline (); $kernel = \ImagickKernel :: fromBuiltIn ( \Imagick ...
https://man.mtool.work/php/8.3/imagick.morphology.html
例 9265
« 定義済み定数 エラー処理関数 » PHP Manual エラー処理 例 検索 例 エラー処理機能を PHP で使用するための例を示します。 ファイルに(XML 形式で)情報を記録し、論理的に致命的なエラーの場合に、 開発者に電子メールを送信するようなエラー処理関数を定義 ... 4/error.log" ); if ( $errno == E_USER_ERROR ) { mail ( "phpdev@example.com" , "Critical User Error" , $err ); } } function distance ( $vect1 , $vect2 ) { if (! is_array ( $vect1 ) || ! is_array ( $vect2 )) { trigger_error ( "Incorrect parameters, arrays ... タ」定義 $a = array( 2 , 3 , "foo" ); $b = array( 5.5 , 4.3 , - 1.6 ); $c = array( 1 , - 3 ); // ユーザーエラーの生成 $t1 = distance ( $c , $b ) . "\n" ; // 他のユーザーエラーの生成 $t2 = distance ( $b , "i am not an array" ) . "\n" ; // 警告の生成 $t3 = ... distance ( $a , $b ) . "\n" ; ?> 関連キーワード: err error array vect Error errno errortype Warning User distance trigger errors return count 定数 php 自分 ハンドリング function userErrorHandler ...
https://man.mtool.work/php/8.3/errorfunc.examples.html
指定されたモルフォロジーメソッドに従い、ユーザー指定のカーネルを画像に適用する 9265
« Imagick::morphImages Imagick::mosaicImages » PHP Manual Imagick 指定されたモルフォロジーメソッドに従い、ユーザー指定のカーネルを画像に適用する 検索 Imagick::morphology (PECL imagick 3 >= 3.3.0) Imagick::morphology — 指定されたモルフォロジ ... TY , 4 , $kernel ); header ( "Content-Type: image/png" ); echo $canvas -> getImageBlob (); ?> 例7 Chebyshev カーネルによる Distance Imagick::morphology() <?php $canvas = $this -> getCharacterOutline (); $kernel = \ImagickKernel :: fromBuiltIn ( \Imagick ... :: KERNEL_CHEBYSHEV , "3" ); $canvas -> morphology ( \Imagick :: MORPHOLOGY_DISTANCE , 3 , $kernel ); $canvas -> autoLevelImage (); header ( "Content-Type: image/png" ); echo $canvas -> getImageBlob (); ?> 例 ... 8 Manhattan カーネルによる Distance Imagick::morphology() <?php $canvas = $this -> getCharacterOutline (); $kernel = \ImagickKernel :: fromBuiltIn ( \Imagick ...
https://man.mtool.work/php/8.3/imagick.morphology.html
例 9160
« 定義済み定数 エラー処理関数 » PHP Manual エラー処理 例 検索 例 エラー処理機能を PHP で使用するための例を示します。 ファイルに(XML 形式で)情報を記録し、論理的に致命的なエラーの場合に、 開発者に電子メールを送信するようなエラー処理関数を定義 ... 4/error.log" ); if ( $errno == E_USER_ERROR ) { mail ( "phpdev@example.com" , "Critical User Error" , $err ); } } function distance ( $vect1 , $vect2 ) { if (! is_array ( $vect1 ) || ! is_array ( $vect2 )) { trigger_error ( "Incorrect parameters, arrays ... タ」定義 $a = array( 2 , 3 , "foo" ); $b = array( 5.5 , 4.3 , - 1.6 ); $c = array( 1 , - 3 ); // ユーザーエラーの生成 $t1 = distance ( $c , $b ) . "\n" ; // 他のユーザーエラーの生成 $t2 = distance ( $b , "i am not an array" ) . "\n" ; // 警告の生成 $t3 = ... distance ( $a , $b ) . "\n" ; ?> 関連キーワード: vect errno errortype Warning User distance trigger errors return count 定数 自分 ハンドリング userErrorHandler errmsg filename linenum vars Core user errorentry date ...
https://man.mtool.work/php/8.3/errorfunc.examples.html
The MongoDB\Driver\Cursor class 8133
« MongoDB\Driver\ReadConcern::isDefault MongoDB\Driver\Cursor::__construct » PHP Manual MongoDB\Driver The MongoDB\Driver\Cursor class 検索 The MongoDB\Driver\Cursor class (mongodb >=1.0.0) はじめに The MongoDB\Driver\Cursor class encapsula ... ns information */ $bulkWrite = new MongoDB\Driver\BulkWrite ; $bulkWrite -> insert ([ 'name' => 'Ceres' , 'size' => 946 , 'distance' => 2.766 ]); $bulkWrite -> insert ([ 'name' => 'Vesta' , 'size' => 525 , 'distance' => 2.362 ]); $manager -> executeBulkW ... dClass Object ( [_id] => MongoDB\BSON\ObjectId Object ( [oid] => 5a4cff2f122d3321565d8cc2 ) [name] => Ceres [size] => 946 [distance] => 2.766 ) stdClass Object ( [_id] => MongoDB\BSON\ObjectId Object ( [oid] => 5a4cff2f122d3321565d8cc3 ) [name] => Vesta ... [size] => 525 [distance] => 2.362 ) 例2 Reading a result set for a tailable cursor » Tailable cursors are a special type of MongoDB cursor that al ...
https://man.mtool.work/php/8.3/class.mongodb-driver-cursor.html
The MongoDB\Driver\Cursor class 8133
« MongoDB\Driver\ReadConcern::isDefault MongoDB\Driver\Cursor::__construct » PHP Manual MongoDB\Driver The MongoDB\Driver\Cursor class 検索 The MongoDB\Driver\Cursor class (mongodb >=1.0.0) はじめに The MongoDB\Driver\Cursor class encapsula ... ns information */ $bulkWrite = new MongoDB\Driver\BulkWrite ; $bulkWrite -> insert ([ 'name' => 'Ceres' , 'size' => 946 , 'distance' => 2.766 ]); $bulkWrite -> insert ([ 'name' => 'Vesta' , 'size' => 525 , 'distance' => 2.362 ]); $manager -> executeBulkW ... dClass Object ( [_id] => MongoDB\BSON\ObjectId Object ( [oid] => 5a4cff2f122d3321565d8cc2 ) [name] => Ceres [size] => 946 [distance] => 2.766 ) stdClass Object ( [_id] => MongoDB\BSON\ObjectId Object ( [oid] => 5a4cff2f122d3321565d8cc3 ) [name] => Vesta ... [size] => 525 [distance] => 2.362 ) 例2 Reading a result set for a tailable cursor » Tailable cursors are a special type of MongoDB cursor that al ...
https://man.mtool.work/php/8.3/class.mongodb-driver-cursor.html
OpenAL ソースのプロパティを取得する 7819
« openal_source_destroy openal_source_pause » PHP Manual OpenAL 関数 OpenAL ソースのプロパティを取得する 検索 openal_source_get (PECL openal >= 0.1.0) openal_source_get — OpenAL ソースのプロパティを取得する 説明 function openal_source_get ( ... VE (int)、 AL_SOURCE_STATE (int)、 AL_PITCH (float)、 AL_GAIN (float)、 AL_MIN_GAIN (float)、 AL_MAX_GAIN (float)、 AL_MAX_DISTANCE (float)、 AL_ROLLOFF_FACTOR (float)、 AL_CONE_OUTER_GAIN (float)、 AL_CONE_INNER_ANGLE (float)、 AL_CONE_OUTER_ANGLE (floa ... t)、 AL_REFERENCE_DISTANCE (float)、 AL_POSITION (array(float,float,float))、 AL_VELOCITY (array(float,float,float))、 AL_DIRECTION (array(float,floa ...
https://man.mtool.work/php/8.3/function.openal-source-get.html
OpenAL ソースのプロパティを取得する 7819
« openal_source_destroy openal_source_pause » PHP Manual OpenAL 関数 OpenAL ソースのプロパティを取得する 検索 openal_source_get (PECL openal >= 0.1.0) openal_source_get — OpenAL ソースのプロパティを取得する 説明 function openal_source_get ( ... VE (int)、 AL_SOURCE_STATE (int)、 AL_PITCH (float)、 AL_GAIN (float)、 AL_MIN_GAIN (float)、 AL_MAX_GAIN (float)、 AL_MAX_DISTANCE (float)、 AL_ROLLOFF_FACTOR (float)、 AL_CONE_OUTER_GAIN (float)、 AL_CONE_INNER_ANGLE (float)、 AL_CONE_OUTER_ANGLE (floa ... t)、 AL_REFERENCE_DISTANCE (float)、 AL_POSITION (array(float,float,float))、 AL_VELOCITY (array(float,float,float))、 AL_DIRECTION (array(float,floa ...
https://man.mtool.work/php/8.3/function.openal-source-get.html
PREV 1 2 NEXT