Search Results
Specifies the color of a background rectangle
Jul 11, 2025 · The ImagickDraw::setTextUnderColor () function is an inbuilt function in PHP which is used to set the color of a background rectangle to place under text annotations.
Simple usage example of `ImagickDraw::setTextUnderColor ()`. The ImagickDraw::setTextUnderColor function is used to specify the color of a background rectangle for text in an ImagickDraw object. This function is commonly used when adding text overlays or captions to images, as it allows you to create a colored background behind the text for better visibility.
(PECL imagick 2, PECL imagick 3) ImagickDraw::setTextUnderColor — Specifies the color of a background rectangle
PHP Manual Function Reference Image Processing and Generation ImageMagick ImagickDraw
ImagickDraw::setTextInterlineSpacing — Sets the text interline spacing ImagickDraw::setTextInterwordSpacing — Sets the text interword spacing ImagickDraw::setTextKerning — Sets the text kerning ImagickDraw::setTextUnderColor — Specifies the color of a background rectangle ImagickDraw::setVectorGraphics — Sets the vector graphics
Specifies the color of a background rectangle to place under text annotations.
