Home
last modified time | relevance | path

Searched refs:color (Results 1 – 25 of 34) sorted by relevance

12

/imagick/tests/
H A D259_Imagick_colorPoints_basic.phpt33 $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 D007_thumbnail_fill.phpt2 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 D003_cast_color_opacity.phpt2 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 D111_Imagick_rotateImage_basic.phpt12 $color = 'rgb(127, 127, 127)';
14 function rotateImage($angle, $color) {
17 $imagick->rotateimage($color, $angle);
22 rotateImage($angle, $color) ;
H A D168_Imagick_whiteThresholdImage_basic.phpt11 $color = 'rgb(127, 127, 127)';
13 function whiteThresholdImage($color) {
17 $imagick->whiteThresholdImage($color);
22 whiteThresholdImage($color) ;
H A D039_Imagick_borderImage_basic.phpt13 $color = 'rgb(127, 127, 127)';
15 function borderImage($color, $width, $height) {
18 $imagick->borderImage($color, $width, $height);
23 borderImage($color, $width, $height) ;
H A D137_Imagick_shearImage_basic.phpt13 $color = 'rgb(127, 127, 127)';
15 function shearImage($color, $shearX, $shearY) {
18 $imagick->shearimage($color, $shearX, $shearY);
23 shearImage($color, $shearX, $shearY) ;
H A D164_Imagick_trimImage_basic.phpt11 $color = 'rgb(39, 194, 255)';
14 function trimImage($color, $fuzz) {
18 $imagick->borderImage($color, 10, 10);
25 trimImage($color, $fuzz) ;
H A D081_Imagick_getImageHistogram_basic.phpt17 //$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 D043_Imagick_colorizeImage_basic.phpt11 $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 D171_ImagickPixel_setColorValue_basic.phpt13 $color = new \ImagickPixel('blue');
14 $color->setcolorValue(\Imagick::COLOR_RED, 128);
17 $draw->setStrokeColor($color);
18 $draw->setFillColor($color);
H A D172_ImagickPixel_setColorValueQuantum_basic.phpt15 $color = new \ImagickPixel('blue');
16 …$color->setcolorValueQuantum(\Imagick::COLOR_RED, (int)(128 * $quantumRange['quantumRangeLong'] / …
19 $draw->setStrokeColor($color);
20 $draw->setFillColor($color);
H A D077_Imagick_frameImage_basic.phpt11 $color = 'rgb(127, 127, 127)';
17 function frameImage($color, $width, $height, $innerBevel, $outerBevel) {
25 $color,
35 frameImage($color, $width, $height, $innerBevel, $outerBevel) ;
H A D160_Imagick_transparentPaintImage_basic.phpt8 $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 D025-get-color.phpt129 $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 D244_Tutorial_psychedelicFontGif_basic.phpt33 $color = "hsl($hue, 255, 128)";
34 $draw->setStrokeColor($color);
35 $draw->setFillColor($color);
H A D169_ImagickPixel_construct_basic.phpt37 $color = new \ImagickPixel($exampleColor);
41 $draw->setFillColor($color);
H A D024-ispixelsimilar.phpt42 …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 D132_Imagick_setOption_case3.phpt15 $imagick->setOption('png:color-type', 6);
H A D229_Tutorial_fxAnalyzeImage_case1.phpt29 $color = $pixel->getColor();
30 $reds[] = $color['r'];
H A D044_Imagick_colorMatrixImage_basic.phpt45 //A color matrix should look like:
H A D010_importimagepixels.phpt14 /* Generate array of pixels. 2000 pixels per color stripe */
/imagick/
H A DImagickPixel.stub.php7 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 DImagickPixel_arginfo.h10 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 Dimagickpixel_class.c84 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 …]

Completed in 21 milliseconds

12