Issues (331)

composite-integer-translate-over-repeat.php (6 issues)

Labels
Severity
1
<?php
2
3
use Cairo\Context;
0 ignored issues
show
The type Cairo\Context was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
4
use Cairo\Extend;
0 ignored issues
show
The type Cairo\Extend was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
5
use Cairo\Operator;
0 ignored issues
show
The type Cairo\Operator was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use Cairo\Pattern\Surface as PatternSurface;
0 ignored issues
show
The type Cairo\Pattern\Surface was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
use Cairo\Surface\Image;
0 ignored issues
show
The type Cairo\Surface\Image was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
use Cairo\Surface\ImageFormat;
0 ignored issues
show
The type Cairo\Surface\ImageFormat was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
10
$surface = new Image(ImageFormat::ARGB32, 100, 100);
11
$context = new Context($surface);
12
13
$s = new Image(ImageFormat::ARGB32, 20, 20);
14
$con2 = new Context($s);
15
16
$con2->setSourceRgba(1, 0, 0, 1);
17
$con2->rectangle(0, 0, 10, 10);
18
$con2->fill();
19
$con2->setSourceRgba(0, 1, 0, 1);
20
$con2->rectangle(10, 0, 10, 10);
21
$con2->fill();
22
$con2->setSourceRgba(0, 0, 1, 1);
23
$con2->rectangle(0, 10, 10, 10);
24
$con2->fill();
25
$con2->setSourceRgba(1, 1, 0, 1);
26
$con2->rectangle(10, 10, 10, 10);
27
$con2->fill();
28
29
$pat = new PatternSurface($s);
30
$pat->setExtend(Extend::REPEAT);
31
$context->setSourceRgba(0, 0, 0, 1);
32
$context->rectangle(0, 0, 100, 100);
33
$context->fill();
34
$context->translate(10, 10);
35
$context->setOperator(Operator::OVER);
36
$context->setPattern($pat);
37
$context->rectangle(0, 0, 90, 90);
38
$context->fill();
39
$surface->writeToPng(dirname(__FILE__).'/composite-integer-translate-over-repeat-php.png');
40