123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <?php
- declare(strict_types = 1);
- namespace BaconQrCode\Renderer\Image;
- use BaconQrCode\Exception\RuntimeException;
- use BaconQrCode\Renderer\Color\ColorInterface;
- use BaconQrCode\Renderer\Path\Path;
- use BaconQrCode\Renderer\RendererStyle\Gradient;
- interface ImageBackEndInterface
- {
-
- public function new(int $size, ColorInterface $backgroundColor) : void;
-
- public function scale(float $size) : void;
-
- public function translate(float $x, float $y) : void;
-
- public function rotate(int $degrees) : void;
-
- public function push() : void;
-
- public function pop() : void;
-
- public function drawPathWithColor(Path $path, ColorInterface $color) : void;
-
- public function drawPathWithGradient(
- Path $path,
- Gradient $gradient,
- float $x,
- float $y,
- float $width,
- float $height
- ) : void;
-
- public function done() : string;
- }
|