« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 1 of about 1 for colorPoint (0.001 sec.)
Imagick::sparseColorImage — 色を補間する | PHP 8.3 9414
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 ): ... dientImage is used by other examples. Imagick::sparseColorImage() <?php function createGradientImage ( $width , $height , $colorPoints , $sparseMethod , $absolute = false ) { $imagick = new \Imagick (); $imagick -> newImage ( $width , $height , "white" ); ... $imagick -> setImageFormat ( "png" ); $barycentricPoints = array(); foreach ( $colorPoints as $colorPoint ) { if ( $absolute == true ) { $barycentricPoints [] = $colorPoint [ 0 ]; $barycentricPoints [] = $colorPo ... int [ 1 ]; } else { $barycentricPoints [] = $colorPoint [ 0 ] * $width ; $barycentricPoints [] = $colorPoint [ 1 ] * $height ; } if ( is_string ( $colorPoint [ 2 ])) { $imagickPi ...
https://man.mtool.work/php/8.3/imagick.sparsecolorimage.html
PREV 1 NEXT