1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-30 17:19:50 +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, ?ImagickDraw $draw = null,
Point $offset = new Point(), Point $offset = new Point(),
): void { ): void {
$frame->native()->annotateImage( if ($draw !== null) {
$draw, $frame->native()->annotateImage(
$textline->position()->x() + $offset->x(), $draw,
$textline->position()->y() + $offset->y(), $textline->position()->x() + $offset->x(),
$this->font->angle(), $textline->position()->y() + $offset->y(),
(string) $textline $this->font->angle(),
); (string) $textline
);
}
} }
/** /**