1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-30 09:10:21 +02:00
This commit is contained in:
Oliver Vogel
2024-03-02 13:50:18 +01:00
parent a673763e14
commit 9f2ea1b688

View File

@@ -126,13 +126,15 @@ class TextModifier extends AbstractTextModifier implements ModifierInterface
?ImagickDraw $draw = null,
Point $offset = new Point(),
): void {
$frame->native()->annotateImage(
$draw,
$textline->position()->x() + $offset->x(),
$textline->position()->y() + $offset->y(),
$this->font->angle(),
(string) $textline
);
if ($draw !== null) {
$frame->native()->annotateImage(
$draw,
$textline->position()->x() + $offset->x(),
$textline->position()->y() + $offset->y(),
$this->font->angle(),
(string) $textline
);
}
}
/**