Issues (331)

examples/filter-bilinear-extents.php (3 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\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...
5
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...
6
7
$surface = new Image(ImageFormat::ARGB32, 36, 36);
8
$context = new Context($surface);
9
$s = new Image(ImageFormat::ARGB32, 2, 2);
10
$con2 = new Context($s);
11
$con2->setSourceRgb(1, 0, 0);
12
$con2->paint();
13
$con2->setSourceRgb(0, 0, 1);
14
$con2->rectangle(0, 1, 1, 1);
15
$con2->rectangle(1, 0, 1, 1);
16
$con2->fill();
17
18
$context->setSourceRgb(0, 0, 0);
19
$context->paint();
20
$context->save();
21
$context->translate(3, 3);
22
$context->scale(10, 10);
23
$context->translate(0.5, 0.5);
24
$context->setSurface($s, 0, 0);
25
$context->paint();
26
$context->restore();
27
28
$surface->writeToPng(dirname(__FILE__).'/filter-bilinear-extents-php.png');
29