/imagick/tests/ |
H A D | 259_Imagick_colorPoints_basic.phpt | 33 $color = $imagick->getImageRedPrimary(); 34 im_check($color['x']);im_check($color['y']); 37 im_check($color['x']);im_check($color['y']); 39 $color = $imagick->getImageBluePrimary(); 40 im_check($color['x']);im_check($color['y']); 42 $color = $imagick->getImageWhitePoint(); 43 im_check($color['x']);im_check($color['y']); 52 im_check($color['x']);im_check($color['y']);im_check($color['z']); 55 im_check($color['x']);im_check($color['y']);im_check($color['z']); 58 im_check($color['x']);im_check($color['y']);im_check($color['z']); [all …]
|
H A D | 007_thumbnail_fill.phpt | 2 Test filling thumbnail with color 20 $color = $im->getImagePixelColor(5, 5); 21 if ($color->isPixelSimilar("pink", 0)) 24 var_dump ($color->getColorAsString()); 26 $color = $im->getImagePixelColor(199, 5); 27 if ($color->isPixelSimilar("pink", 0)) 30 var_dump ($color->getColorAsString());
|
H A D | 003_cast_color_opacity.phpt | 2 Casting color and opacity to pixel 13 echo "Casting color and opacity succeeded\n"; 15 echo "Casting color and opacity failed: " , $e->getMessage() . PHP_EOL; 24 echo "Setting color and opacity without cast succeeded\n"; 26 echo "Setting color and opacity without cast failed: " , $e->getMessage() . PHP_EOL; 32 Casting color and opacity succeeded 33 Setting color and opacity without cast succeeded
|
H A D | 111_Imagick_rotateImage_basic.phpt | 12 $color = 'rgb(127, 127, 127)'; 14 function rotateImage($angle, $color) { 17 $imagick->rotateimage($color, $angle); 22 rotateImage($angle, $color) ;
|
H A D | 168_Imagick_whiteThresholdImage_basic.phpt | 11 $color = 'rgb(127, 127, 127)'; 13 function whiteThresholdImage($color) { 17 $imagick->whiteThresholdImage($color); 22 whiteThresholdImage($color) ;
|
H A D | 039_Imagick_borderImage_basic.phpt | 13 $color = 'rgb(127, 127, 127)'; 15 function borderImage($color, $width, $height) { 18 $imagick->borderImage($color, $width, $height); 23 borderImage($color, $width, $height) ;
|
H A D | 137_Imagick_shearImage_basic.phpt | 13 $color = 'rgb(127, 127, 127)'; 15 function shearImage($color, $shearX, $shearY) { 18 $imagick->shearimage($color, $shearX, $shearY); 23 shearImage($color, $shearX, $shearY) ;
|
H A D | 164_Imagick_trimImage_basic.phpt | 11 $color = 'rgb(39, 194, 255)'; 14 function trimImage($color, $fuzz) { 18 $imagick->borderImage($color, 10, 10); 25 trimImage($color, $fuzz) ;
|
H A D | 081_Imagick_getImageHistogram_basic.phpt | 17 //$color = $histogramElement->getColorValueQuantum($colorChannel); 18 $color = $histogramElement->getColorValue($colorChannel); 19 $color = intval($color * 255); 22 if (array_key_exists($color, $colorStatistics)) { 23 $colorStatistics[$color] += $count; 26 $colorStatistics[$color] = $count; 83 foreach ($colorValues as $color => $values) { 84 $draw->setstrokecolor($color);
|
H A D | 043_Imagick_colorizeImage_basic.phpt | 11 $color = 'rgb(127, 127, 127)'; 14 function colorizeImage($color, $opacity) { 19 $imagick->colorizeImage($color, $opacityColor); 24 colorizeImage($color, $opacity) ; 32 $imagick->colorizeImage($color, 0.5, true);
|
H A D | 171_ImagickPixel_setColorValue_basic.phpt | 13 $color = new \ImagickPixel('blue'); 14 $color->setcolorValue(\Imagick::COLOR_RED, 128); 17 $draw->setStrokeColor($color); 18 $draw->setFillColor($color);
|
H A D | 172_ImagickPixel_setColorValueQuantum_basic.phpt | 15 $color = new \ImagickPixel('blue'); 16 …$color->setcolorValueQuantum(\Imagick::COLOR_RED, (int)(128 * $quantumRange['quantumRangeLong'] / … 19 $draw->setStrokeColor($color); 20 $draw->setFillColor($color);
|
H A D | 077_Imagick_frameImage_basic.phpt | 11 $color = 'rgb(127, 127, 127)'; 17 function frameImage($color, $width, $height, $innerBevel, $outerBevel) { 25 $color, 35 frameImage($color, $width, $height, $innerBevel, $outerBevel) ;
|
H A D | 160_Imagick_transparentPaintImage_basic.phpt | 8 $color = 'rgb(39, 194, 255)'; 12 function transparentPaintImage($color, $alpha, $fuzz) { 20 $color, $alpha, $fuzz * \Imagick::getQuantum(), false 30 transparentPaintImage($color, $alpha, $fuzz) ;
|
H A D | 025-get-color.phpt | 129 $color = $pixel->getColor(); 134 $color = $pixel->getColor(true); 139 $color = $pixel->getColor(2); 144 $color = $pixel->getColorQuantum(); 156 if (!checkExpectedValue($expectedValue, $color[$key], $hasVariance)) { 161 $color[$key], $expectedValue
|
H A D | 244_Tutorial_psychedelicFontGif_basic.phpt | 33 $color = "hsl($hue, 255, 128)"; 34 $draw->setStrokeColor($color); 35 $draw->setFillColor($color);
|
H A D | 169_ImagickPixel_construct_basic.phpt | 37 $color = new \ImagickPixel($exampleColor); 41 $draw->setFillColor($color);
|
H A D | 024-ispixelsimilar.phpt | 42 …echo "isSimilar failed. Color [$color1] compared to color [$color2] distance $testDistance doesn't… 47 …echo "isPixelSimilar failed. Color [$color1] compared to color [$color2] distance $testDistance do…
|
H A D | 132_Imagick_setOption_case3.phpt | 15 $imagick->setOption('png:color-type', 6);
|
H A D | 229_Tutorial_fxAnalyzeImage_case1.phpt | 29 $color = $pixel->getColor(); 30 $reds[] = $color['r'];
|
H A D | 044_Imagick_colorMatrixImage_basic.phpt | 45 //A color matrix should look like:
|
H A D | 010_importimagepixels.phpt | 14 /* Generate array of pixels. 2000 pixels per color stripe */
|
/imagick/ |
H A D | ImagickPixel.stub.php | 7 public function __construct(?string $color = null) {} argument 23 public function getColorValue(int $color): float {} argument 26 * @param int $color // COLOR_* 31 public function getColorValueQuantum(int $color): IMAGICK_QUANTUM_TYPE {} argument 37 public function isPixelSimilar(ImagickPixel|string $color, float $fuzz): bool {} argument 42 …public function isPixelSimilarQuantum(ImagickPixel|string $color, float $fuzz_quantum_range_scaled… argument 47 ImagickPixel|string $color, 52 public function setColor(string $color): bool {} argument 57 public function setColorValue(int $color, float $value): bool {} argument 60 * @param int $color // COLOR_* [all …]
|
H A D | ImagickPixel_arginfo.h | 10 ZEND_ARG_INFO(0, color) 78 ZEND_ARG_TYPE_INFO(0, color, IS_LONG, 0) 80 ZEND_ARG_INFO(0, color) 105 ZEND_ARG_TYPE_INFO(0, color, IS_LONG, 0) 107 ZEND_ARG_INFO(0, color) 158 ZEND_ARG_TYPE_INFO(0, color, IS_STRING, 0) 160 ZEND_ARG_INFO(0, color) 188 ZEND_ARG_TYPE_INFO(0, color, IS_LONG, 0) 190 ZEND_ARG_INFO(0, color) 209 ZEND_ARG_TYPE_INFO(0, color, IS_LONG, 0) [all …]
|
H A D | imagickpixel_class.c | 84 im_long color; in PHP_METHOD() local 88 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &color) == FAILURE) { in PHP_METHOD() 97 switch (color) { in PHP_METHOD() 157 im_long color; in PHP_METHOD() local 178 switch (color) { in PHP_METHOD() 440 im_long color; local 453 if (color <= PHP_IMAGICK_COLOR_MIN || color >= PHP_IMAGICK_COLOR_MAX) { 458 color_enum = color; 522 im_long color; local 535 if (color <= PHP_IMAGICK_COLOR_MIN || color >= PHP_IMAGICK_COLOR_MAX) { [all …]
|