generated from mirzaev/pot-php
Compare commits
1 Commits
4d2e419018
...
1.1.2
| Author | SHA1 | Date | |
|---|---|---|---|
| 3ef75a5814 |
@@ -181,15 +181,15 @@ final class paper extends core
|
|||||||
// Drawing the cutting line
|
// Drawing the cutting line
|
||||||
$draw = new imagick_draw();
|
$draw = new imagick_draw();
|
||||||
$draw->setfillcolor($canvas['background'] ?? '#fff');
|
$draw->setfillcolor($canvas['background'] ?? '#fff');
|
||||||
$stroke = 1;
|
$stroke = 2;
|
||||||
$draw->setStrokeOpacity($stroke);
|
$draw->setStrokeOpacity(1);
|
||||||
$draw->setStrokeColor('#000');
|
$draw->setStrokeColor('#000');
|
||||||
$draw->setStrokeWidth(2);
|
$draw->setStrokeWidth($stroke);
|
||||||
$draw->circle(
|
$draw->circle(
|
||||||
$place['x'] + $blank['width'] / 2,
|
$place['x'] + $blank['width'] / 2,
|
||||||
$place['y'] + $blank['height'] / 2,
|
$place['y'] + $blank['height'] / 2,
|
||||||
round($place['x'] + $blank['width'] / 2 - $stroke),
|
round($place['x'] + $blank['width'] / 2 + $stroke),
|
||||||
round($place['y'] + $blank['height'])
|
round($place['y'] + $blank['height'] + $stroke)
|
||||||
);
|
);
|
||||||
$paper->drawimage($draw);
|
$paper->drawimage($draw);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user