doulu5109
2015-10-22 18:07
浏览 67
已采纳

如何在PHP中使用Imagick更改特定单词的颜色?

I'm currently using annotateImage to add some text to an image.

/* Black text */
$draw->setFillColor('black');

/* Font properties */
$draw->setFont('Bookman-DemiItalic');
$draw->setFontSize( 30 );

$image->annotateImage($draw, 10, 45, 0, 'The fox jumped over the lazy dog');

This currently displays all the text in black. I'm looking for a way to change the color of the word fox to red, but I'm out of ideas.

How can I achieve this?

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题