« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 23 for Points (0.001 sec.)
imageopenpolygon — オープンポリゴンを描画する | PHP 8.3 12818
imageopenpolygon (PHP 7 >= 7.2.0, PHP 8) imageopenpolygon — オープンポリゴンを描画する 説明 PHP 8.0.0 以降のシグネチャ (名前付き引数をサポートしていません) function imageopenpolygon ( GdImage $image , array $points , int $color ): bool 代替 ... のシグネチャ (PHP 8.1.0 以降は非推奨) function imageopenpolygon ( GdImage $image , array $points , int $num_points , int $color ): bool imageopenpolygon() 関数は、 与えられた image のオープンポリゴンを描画します。 image ... 始点と終点の間の線は描かれません。 パラメータ image imagecreatetruecolor() のような画像作成関数が返す GdImage オブジェクト。 points ポリゴンの点を含む配列: points[0] = x0 points[1] = y0 points[2] = x1 points[3] = y1 num_points 全ての点の数。少なくとも3以 ... 上である必要があります。 代替のシグネチャ(PHP 8.0.0 以降) でこの引数が省略された場合、 points は偶数でなければいけません。また、 num_points は count($points)/2 であると仮定されます。 color imagecolorallocate() で作成 ...
https://man.mtool.work/php/8.3/function.imageopenpolygon.html
imagepolygon — 多角形を描画する | PHP 8.3 12718
imagepolygon (PHP 4, PHP 5, PHP 7, PHP 8) imagepolygon — 多角形を描画する 説明 PHP 8.0.0 以降のシグネチャ(名前付き引数をサポートしていません) function imagepolygon ( GdImage $image , array $points , int $color ): bool 代替のシグネチャ (PHP ... 8.1.0 以降は非推奨) function imagepolygon ( GdImage $image , array $points , int $num_points , int $color ): bool imagepolygon() は、指定した image に多角形を作成します。 パラメータ image imagecrea ... tetruecolor() のような画像作成関数が返す GdImage オブジェクト。 points 多角形の頂点からなる PHP の配列で、 次のようになります。 points[0] = x0 points[1] = y0 points[2] = x1 points[3] = y1 num_p ... oints 頂点の総数。最小でも3でなければなりません。 代替のシグネチャ(PHP 8.0.0 以降) でこの引数が省略された場合、 points は偶数でなければいけません。また、 num_points は count($points)/2 であると仮定されます。 color imagecolorallocate() で作成 ...
https://man.mtool.work/php/8.3/function.imagepolygon.html
imagefilledpolygon — 塗りつぶした多角形を描画する | PHP 8.3 10824
imagefilledpolygon (PHP 4, PHP 5, PHP 7, PHP 8) imagefilledpolygon — 塗りつぶした多角形を描画する 説明 PHP 8.0.0 以降のシグネチャ(名前付き引数をサポートしていません) function imagefilledpolygon ( GdImage $image , array $points , int $color ... ): bool 代替のシグネチャ (PHP 8.1.0 以降 は非推奨) function imagefilledpolygon ( GdImage $image , array $points , int $num_points , int $color ): bool imagefilledpolygon() は画像 image 上に塗りつぶした多角形を生成します。 パラメータ i ... mage imagecreatetruecolor() のような画像作成関数が返す GdImage オブジェクト。 points 多角形の頂点の座標 x および y を含む配列。 num_points 頂点の総数。 3 以上である必要があります。 代替のシグネチャ(PHP 8.0.0 ... 以降) でこの引数が省略された場合、 points は偶数でなければいけません。また、 num_points は count($points)/2 であると仮定されます。 color imagecolorallocate() で作成 ...
https://man.mtool.work/php/8.3/function.imagefilledpolygon.html
Imagick::sparseColorImage — 色を補間する | PHP 8.3 10422
Imagick::sparseColorImage (PECL imagick 2 >= 2.3.0, PECL imagick 3) Imagick::sparseColorImage — 色を補間する 説明 public function Imagick::sparseColorImage ( int $SPARSE_METHOD , array $arguments , int $channel = Imagick::CHANNEL_DEFAULT ): ... スローします。 例 例1 SPARSECOLORMETHOD_BARYCENTRIC Imagick::sparseColorImage() <?php function renderImageBarycentric2 () { $points = [ [ 0.30 , 0.10 , 'red' ], [ 0.10 , 0.80 , 'blue' ], [ 0.70 , 0.60 , 'lime' ], [ 0.80 , 0.20 , 'yellow' ], ]; $imagick = ... createGradientImage ( 400 , 400 , $points , \Imagick :: SPARSECOLORMETHOD_BARYCENTRIC ); header ( "Content-Type: image/png" ); echo $imagick -> getImageBlob (); } ? ... > 例2 SPARSECOLORMETHOD_BILINEAR Imagick::sparseColorImage() <?php function renderImageBilinear () { $points = [[ 0.30 , 0.10 , 'red' ], [ 0.10 , 0.80 , 'blue' ], [ 0.70 , 0.60 , 'lime' ], [ 0.80 , 0.20 , 'yellow' ],]; $imagick = c ...
https://man.mtool.work/php/8.3/imagick.sparsecolorimage.html
ImagickDraw::setFillRule — 多角形の描画時に使用する塗りつぶしルールを設定する |... 9400
ImagickDraw::setFillRule (PECL imagick 2, PECL imagick 3) ImagickDraw::setFillRule — 多角形の描画時に使用する塗りつぶしルールを設定する 説明 public function ImagickDraw::setFillRule ( int $fillrule ): bool 警告 この関数は、 現在のところ詳細 ... or ); $draw -> setFillColor ( $fillColor ); $fillRules = [ \Imagick :: FILLRULE_NONZERO , \Imagick :: FILLRULE_EVENODD ]; $points = 11 ; $size = 150 ; $draw -> translate ( 175 , 160 ); for ( $x = 0 ; $x < 2 ; $x ++) { $draw -> setFillRule ( $fillRules ... [ $x ]); $draw -> pathStart (); for ( $n = 0 ; $n < $points * 2 ; $n ++) { if ( $n >= $points ) { $angle = fmod ( $n * 360 * 4 / $points , 360 ) * pi () / 180 ; } else { $angle = fmo ... d ( $n * 360 * 3 / $points , 360 ) * pi () / 180 ; } $positionX = $size * sin ( $angle ); $positionY = $size * cos ( $angle ); if ( $n == 0 ) { $draw ...
https://man.mtool.work/php/8.3/imagickdraw.setfillrule.html
ImagickDraw::bezier — ベジエ曲線を描画する | PHP 8.3 8646
ImagickDraw::bezier (PECL imagick 2, PECL imagick 3) ImagickDraw::bezier — ベジエ曲線を描画する 説明 public function ImagickDraw::bezier ( array $coordinates ): bool 警告 この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記 ... 1 ); $draw -> setStrokeColor ( $strokeColor ); $draw -> setFillColor ( $fillColor ); $draw -> setStrokeWidth ( 2 ); $smoothPointsSet = [ [ [ 'x' => 10.0 * 5 , 'y' => 10.0 * 5 ], [ 'x' => 30.0 * 5 , 'y' => 90.0 * 5 ], [ 'x' => 25.0 * 5 , 'y' => 10.0 * 5 ... , 'y' => 90.0 * 5 ], [ 'x' => 70.0 * 5 , 'y' => 10.0 * 5 ], [ 'x' => 90.0 * 5 , 'y' => 40.0 * 5 ], ], ]; foreach ( $smoothPointsSet as $points ) { $draw -> bezier ( $points ); } $disjointPoints = [ [ [ 'x' => 10 * 5 , 'y' => 10 * 5 ], [ 'x' => 30 * 5 ... x' => 70 * 5 , 'y' => 10 * 5 ], [ 'x' => 90 * 5 , 'y' => 40 * 5 ], ] ]; $draw -> translate ( 0 , 200 ); foreach ( $disjointPoints as $points ) { $draw -> bezier ( $points ); } //Create an image object which the draw commands can be rendered into $imagi ...
https://man.mtool.work/php/8.3/imagickdraw.bezier.html
imageline — 直線を描画する | PHP 8.3 8177
imageline (PHP 4, PHP 5, PHP 7, PHP 8) imageline — 直線を描画する 説明 function imageline ( GdImage $image , int $x1 , int $y1 , int $x2 , int $y2 , int $color ): true 指定したふたつの点を結ぶ直線を描画します。 パラメータ image imagecreatet ... ( $y1 , $y2 ) + $t ), $color ); } $k = ( $y2 - $y1 ) / ( $x2 - $x1 ); //y = kx + q $a = $t / sqrt ( 1 + pow ( $k , 2 )); $points = array( round ( $x1 - ( 1 + $k )* $a ), round ( $y1 + ( 1 - $k )* $a ), round ( $x1 - ( 1 - $k )* $a ), round ( $y1 - ( 1 ... $y2 - ( 1 - $k )* $a ), round ( $x2 + ( 1 - $k )* $a ), round ( $y2 + ( 1 + $k )* $a ), ); imagefilledpolygon ( $image , $points , 4 , $color ); return imagepolygon ( $image , $points , 4 , $color ); } ?> 参考 imagecreatetruecolor() - TrueColor イメー ...
https://man.mtool.work/php/8.3/function.imageline.html
ImagickDraw::polygon — 多角形を描画する | PHP 8.3 7925
ImagickDraw::polygon (PECL imagick 2, PECL imagick 3) ImagickDraw::polygon — 多角形を描画する 説明 public function ImagickDraw::polygon ( array $coordinates ): bool 警告 この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記 ... ity ( 1 ); $draw -> setStrokeColor ( $strokeColor ); $draw -> setStrokeWidth ( 4 ); $draw -> setFillColor ( $fillColor ); $points = [ [ 'x' => 40 * 5 , 'y' => 10 * 5 ], [ 'x' => 20 * 5 , 'y' => 20 * 5 ], [ 'x' => 70 * 5 , 'y' => 50 * 5 ], [ 'x' => 60 * ... 5 , 'y' => 15 * 5 ], ]; $draw -> polygon ( $points ); $image = new \Imagick (); $image -> newImage ( 500 , 300 , $backgroundColor ); $image -> setImageFormat ( "png" ); $ima ...
https://man.mtool.work/php/8.3/imagickdraw.polygon.html
ImagickDraw::polyline — 線分群を描画する | PHP 8.3 7925
ImagickDraw::polyline (PECL imagick 2, PECL imagick 3) ImagickDraw::polyline — 線分群を描画する 説明 public function ImagickDraw::polyline ( array $coordinates ): bool 警告 この関数は、 現在のところ詳細な情報はありません。引数のリストのみが ... ity ( 1 ); $draw -> setStrokeColor ( $strokeColor ); $draw -> setFillColor ( $fillColor ); $draw -> setStrokeWidth ( 5 ); $points = [ [ 'x' => 40 * 5 , 'y' => 10 * 5 ], [ 'x' => 20 * 5 , 'y' => 20 * 5 ], [ 'x' => 70 * 5 , 'y' => 50 * 5 ], [ 'x' => 60 * ... 5 , 'y' => 15 * 5 ] ]; $draw -> polyline ( $points ); $image = new \Imagick (); $image -> newImage ( 500 , 300 , $backgroundColor ); $image -> setImageFormat ( "png" ); $ima ...
https://man.mtool.work/php/8.3/imagickdraw.polyline.html
ImagickDraw::setStrokeLineJoin — パスの角を描画する際に使用する形状を指定する |... 7875
ImagickDraw::setStrokeLineJoin (PECL imagick 2, PECL imagick 3) ImagickDraw::setStrokeLineJoin — パスの角を描画する際に使用する形状を指定する 説明 public function ImagickDraw::setStrokeLineJoin ( int $linejoin ): bool 警告 この関数は、 現在 ... IN_BEVEL , ]; for ( $x = 0 ; $x < count ( $lineJoinStyle ); $x ++) { $draw -> setStrokeLineJoin ( $lineJoinStyle [ $x ]); $points = [ [ 'x' => 40 * 5 , 'y' => 10 * 5 + $x * $offset ], [ 'x' => 20 * 5 , 'y' => 20 * 5 + $x * $offset ], [ 'x' => 70 * 5 , ... 'y' => 50 * 5 + $x * $offset ], [ 'x' => 40 * 5 , 'y' => 10 * 5 + $x * $offset ], ]; $draw -> polyline ( $points ); } $image = new \Imagick (); $image -> newImage ( 500 , 700 , $backgroundColor ); $image -> setImageFormat ( "png" ); $i ...
https://man.mtool.work/php/8.3/imagickdraw.setstrokelinejoin.html
PREV 1 2 3 NEXT