Skip to content

ImagickDraw

  • Full name: \ImagickDraw

See Also:

  • https://php.net/manual/en/class.imagickdraw.php -

Methods

resetVectorGraphics

public resetVectorGraphics(): mixed

getTextKerning

public getTextKerning(): mixed

setTextKerning

public setTextKerning(mixed $kerning): mixed

Parameters:

Parameter Type Description
$kerning mixed

getTextInterWordSpacing

public getTextInterWordSpacing(): mixed

setTextInterWordSpacing

public setTextInterWordSpacing(mixed $spacing): mixed

Parameters:

Parameter Type Description
$spacing mixed

getTextInterLineSpacing

public getTextInterLineSpacing(): mixed

setTextInterLineSpacing

public setTextInterLineSpacing(mixed $spacing): mixed

Parameters:

Parameter Type Description
$spacing mixed

__construct

(PECL imagick 2.0.0)
The ImagickDraw constructor

public __construct(): mixed

See Also:

  • https://php.net/manual/en/imagickdraw.construct.php -

setFillColor

(PECL imagick 2.0.0)
Sets the fill color to be used for drawing filled objects

public setFillColor(\ImagickPixel $fill_pixel): bool

Parameters:

Parameter Type Description
$fill_pixel \ImagickPixel <p>
ImagickPixel to use to set the color
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.setfillcolor.php -

setFillAlpha

(PECL imagick 2.0.0)
Sets the opacity to use when drawing using the fill color or fill texture

public setFillAlpha(float $opacity): bool

Parameters:

Parameter Type Description
$opacity float <p>
fill alpha
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.setfillalpha.php -

setResolution

public setResolution(mixed $x_resolution, mixed $y_resolution): mixed

Parameters:

Parameter Type Description
$x_resolution mixed
$y_resolution mixed

setStrokeColor

(PECL imagick 2.0.0)
Sets the color used for stroking object outlines

public setStrokeColor(\ImagickPixel $stroke_pixel): bool

Parameters:

Parameter Type Description
$stroke_pixel \ImagickPixel <p>
the stroke color
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.setstrokecolor.php -

setStrokeAlpha

(PECL imagick 2.0.0)
Specifies the opacity of stroked object outlines

public setStrokeAlpha(float $opacity): bool

Parameters:

Parameter Type Description
$opacity float <p>
opacity
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.setstrokealpha.php -

setStrokeWidth

(PECL imagick 2.0.0)
Sets the width of the stroke used to draw object outlines

public setStrokeWidth(float $stroke_width): bool

Parameters:

Parameter Type Description
$stroke_width float <p>
stroke width
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.setstrokewidth.php -

clear

(PECL imagick 2.0.0)
Clears the ImagickDraw

public clear(): bool

Return Value:

an ImagickDraw object.

See Also:

  • https://php.net/manual/en/imagickdraw.clear.php -

circle

(PECL imagick 2.0.0)
Draws a circle

public circle(float $ox, float $oy, float $px, float $py): bool

Parameters:

Parameter Type Description
$ox float <p>
origin x coordinate
</p>
$oy float <p>
origin y coordinate
</p>
$px float <p>
perimeter x coordinate
</p>
$py float <p>
perimeter y coordinate
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.circle.php -

annotation

(PECL imagick 2.0.0)
Draws text on the image

public annotation(float $x, float $y, string $text): bool

Parameters:

Parameter Type Description
$x float <p>
The x coordinate where text is drawn
</p>
$y float <p>
The y coordinate where text is drawn
</p>
$text string <p>
The text to draw on the image
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.annotation.php -

setTextAntialias

(PECL imagick 2.0.0)
Controls whether text is antialiased

public setTextAntialias(bool $antiAlias): bool

Parameters:

Parameter Type Description
$antiAlias bool

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.settextantialias.php -

setTextEncoding

(PECL imagick 2.0.0)
Specifies specifies the text code set

public setTextEncoding(string $encoding): bool

Parameters:

Parameter Type Description
$encoding string <p>
the encoding name
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.settextencoding.php -

setFont

(PECL imagick 2.0.0)
Sets the fully-specified font to use when annotating with text

public setFont(string $font_name): bool

Parameters:

Parameter Type Description
$font_name string

Return Value:

TRUE on success.

See Also:

  • https://php.net/manual/en/imagickdraw.setfont.php -

setFontFamily

(PECL imagick 2.0.0)
Sets the font family to use when annotating with text

public setFontFamily(string $font_family): bool

Parameters:

Parameter Type Description
$font_family string <p>
the font family
</p>

Return Value:

TRUE on success.

See Also:

  • https://php.net/manual/en/imagickdraw.setfontfamily.php -

setFontSize

(PECL imagick 2.0.0)
Sets the font pointsize to use when annotating with text

public setFontSize(float $pointsize): bool

Parameters:

Parameter Type Description
$pointsize float <p>
the point size
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.setfontsize.php -

setFontStyle

(PECL imagick 2.0.0)
Sets the font style to use when annotating with text

public setFontStyle(int $style): bool

Parameters:

Parameter Type Description
$style int <p>
STYLETYPE_ constant
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.setfontstyle.php -

setFontWeight

(PECL imagick 2.0.0)
Sets the font weight

public setFontWeight(int $font_weight): bool

Parameters:

Parameter Type Description
$font_weight int

See Also:

  • https://php.net/manual/en/imagickdraw.setfontweight.php -

getFont

(PECL imagick 2.0.0)
Returns the font

public getFont(): string|false

Return Value:

a string on success and false if no font is set.

See Also:

  • https://php.net/manual/en/imagickdraw.getfont.php -

getFontFamily

(PECL imagick 2.0.0)
Returns the font family

public getFontFamily(): string|false

Return Value:

the font family currently selected or false if font family is not set.

See Also:

  • https://php.net/manual/en/imagickdraw.getfontfamily.php -

getFontSize

(PECL imagick 2.0.0)
Returns the font pointsize

public getFontSize(): float

Return Value:

the font size associated with the current ImagickDraw object.

See Also:

  • https://php.net/manual/en/imagickdraw.getfontsize.php -

getFontStyle

(PECL imagick 2.0.0)
Returns the font style

public getFontStyle(): int

Return Value:

the font style constant (STYLE_) associated with the ImagickDraw object or 0 if no style is set.

See Also:

  • https://php.net/manual/en/imagickdraw.getfontstyle.php -

getFontWeight

(PECL imagick 2.0.0)
Returns the font weight

public getFontWeight(): int

Return Value:

an int on success and 0 if no weight is set.

See Also:

  • https://php.net/manual/en/imagickdraw.getfontweight.php -

destroy

(PECL imagick 2.0.0)
Frees all associated resources

public destroy(): bool

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.destroy.php -

rectangle

(PECL imagick 2.0.0)
Draws a rectangle

public rectangle(float $x1, float $y1, float $x2, float $y2): bool

Parameters:

Parameter Type Description
$x1 float <p>
x coordinate of the top left corner
</p>
$y1 float <p>
y coordinate of the top left corner
</p>
$x2 float <p>
x coordinate of the bottom right corner
</p>
$y2 float <p>
y coordinate of the bottom right corner
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.rectangle.php -

roundRectangle

(PECL imagick 2.0.0)
Draws a rounded rectangle

public roundRectangle(float $x1, float $y1, float $x2, float $y2, float $rx, float $ry): bool

Parameters:

Parameter Type Description
$x1 float <p>
x coordinate of the top left corner
</p>
$y1 float <p>
y coordinate of the top left corner
</p>
$x2 float <p>
x coordinate of the bottom right
</p>
$y2 float <p>
y coordinate of the bottom right
</p>
$rx float <p>
x rounding
</p>
$ry float <p>
y rounding
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.roundrectangle.php -

ellipse

(PECL imagick 2.0.0)
Draws an ellipse on the image

public ellipse(float $ox, float $oy, float $rx, float $ry, float $start, float $end): bool

Parameters:

Parameter Type Description
$ox float
$oy float
$rx float
$ry float
$start float
$end float

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.ellipse.php -

skewX

(PECL imagick 2.0.0)
Skews the current coordinate system in the horizontal direction

public skewX(float $degrees): bool

Parameters:

Parameter Type Description
$degrees float <p>
degrees to skew
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.skewx.php -

skewY

(PECL imagick 2.0.0)
Skews the current coordinate system in the vertical direction

public skewY(float $degrees): bool

Parameters:

Parameter Type Description
$degrees float <p>
degrees to skew
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.skewy.php -

translate

(PECL imagick 2.0.0)
Applies a translation to the current coordinate system

public translate(float $x, float $y): bool

Parameters:

Parameter Type Description
$x float <p>
horizontal translation
</p>
$y float <p>
vertical translation
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.translate.php -

line

(PECL imagick 2.0.0)
Draws a line

public line(float $sx, float $sy, float $ex, float $ey): bool

Parameters:

Parameter Type Description
$sx float <p>
starting x coordinate
</p>
$sy float <p>
starting y coordinate
</p>
$ex float <p>
ending x coordinate
</p>
$ey float <p>
ending y coordinate
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.line.php -

arc

(PECL imagick 2.0.0)
Draws an arc

public arc(float $sx, float $sy, float $ex, float $ey, float $sd, float $ed): bool

Parameters:

Parameter Type Description
$sx float <p>
Starting x ordinate of bounding rectangle
</p>
$sy float <p>
starting y ordinate of bounding rectangle
</p>
$ex float <p>
ending x ordinate of bounding rectangle
</p>
$ey float <p>
ending y ordinate of bounding rectangle
</p>
$sd float <p>
starting degrees of rotation
</p>
$ed float <p>
ending degrees of rotation
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.arc.php -

matte

(PECL imagick 2.0.0)
Paints on the image's opacity channel

public matte(float $x, float $y, int $paintMethod): bool

Parameters:

Parameter Type Description
$x float <p>
x coordinate of the matte
</p>
$y float <p>
y coordinate of the matte
</p>
$paintMethod int <p>
PAINT_ constant
</p>

Return Value:

TRUE on success or FALSE on failure.

See Also:

  • https://php.net/manual/en/imagickdraw.matte.php -

polygon

(PECL imagick 2.0.0)
Draws a polygon

public polygon(array $coordinates): bool

Parameters:

Parameter Type Description
$coordinates array <p>
multidimensional array like array( array( 'x' => 3, 'y' => 4 ), array( 'x' => 2, 'y' => 6 ) );
</p>

Return Value:

TRUE on success.

See Also:

  • https://php.net/manual/en/imagickdraw.polygon.php -

point

(PECL imagick 2.0.0)
Draws a point

public point(float $x, float $y): bool

Parameters:

Parameter Type Description
$x float <p>
point's x coordinate
</p>
$y float <p>
point's y coordinate
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.point.php -

getTextDecoration

(PECL imagick 2.0.0)
Returns the text decoration

public getTextDecoration(): int

Return Value:

one of the DECORATION_ constants and 0 if no decoration is set.

See Also:

  • https://php.net/manual/en/imagickdraw.gettextdecoration.php -

getTextEncoding

(PECL imagick 2.0.0)
Returns the code set used for text annotations

public getTextEncoding(): string

Return Value:

a string specifying the code set or false if text encoding is not set.

See Also:

  • https://php.net/manual/en/imagickdraw.gettextencoding.php -

getFontStretch

public getFontStretch(): mixed

setFontStretch

(PECL imagick 2.0.0)
Sets the font stretch to use when annotating with text

public setFontStretch(int $fontStretch): bool

Parameters:

Parameter Type Description
$fontStretch int <p>
STRETCH_ constant
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.setfontstretch.php -

setStrokeAntialias

(PECL imagick 2.0.0)
Controls whether stroked outlines are antialiased

public setStrokeAntialias(bool $stroke_antialias): bool

Parameters:

Parameter Type Description
$stroke_antialias bool <p>
the antialias setting
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.setstrokeantialias.php -

setTextAlignment

(PECL imagick 2.0.0)
Specifies a text alignment

public setTextAlignment(int $alignment): bool

Parameters:

Parameter Type Description
$alignment int <p>
ALIGN_ constant
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.settextalignment.php -

setTextDecoration

(PECL imagick 2.0.0)
Specifies a decoration

public setTextDecoration(int $decoration): bool

Parameters:

Parameter Type Description
$decoration int <p>
DECORATION_ constant
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.settextdecoration.php -

setTextUnderColor

(PECL imagick 2.0.0)
Specifies the color of a background rectangle

public setTextUnderColor(\ImagickPixel $under_color): bool

Parameters:

Parameter Type Description
$under_color \ImagickPixel <p>
the under color
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.settextundercolor.php -

setViewbox

(PECL imagick 2.0.0)
Sets the overall canvas size

public setViewbox(int $x1, int $y1, int $x2, int $y2): bool

Parameters:

Parameter Type Description
$x1 int <p>
left x coordinate
</p>
$y1 int <p>
left y coordinate
</p>
$x2 int <p>
right x coordinate
</p>
$y2 int <p>
right y coordinate
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.setviewbox.php -

affine

(PECL imagick 2.0.0)
Adjusts the current affine transformation matrix

public affine(array $affine): bool

Parameters:

Parameter Type Description
$affine array <p>
Affine matrix parameters
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.affine.php -

bezier

(PECL imagick 2.0.0)
Draws a bezier curve

public bezier(array $coordinates): bool

Parameters:

Parameter Type Description
$coordinates array <p>
Multidimensional array like array( array( 'x' => 1, 'y' => 2 ),
array( 'x' => 3, 'y' => 4 ) )
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.bezier.php -

composite

(PECL imagick 2.0.0)
Composites an image onto the current image

public composite(int $compose, float $x, float $y, float $width, float $height, \Imagick $compositeWand): bool

Parameters:

Parameter Type Description
$compose int <p>
composition operator. One of COMPOSITE_ constants
</p>
$x float <p>
x coordinate of the top left corner
</p>
$y float <p>
y coordinate of the top left corner
</p>
$width float <p>
width of the composition image
</p>
$height float <p>
height of the composition image
</p>
$compositeWand \Imagick <p>
the Imagick object where composition image is taken from
</p>

Return Value:

TRUE on success.

See Also:

  • https://php.net/manual/en/imagickdraw.composite.php -

color

(PECL imagick 2.0.0)
Draws color on image

public color(float $x, float $y, int $paintMethod): bool

Parameters:

Parameter Type Description
$x float <p>
x coordinate of the paint
</p>
$y float <p>
y coordinate of the paint
</p>
$paintMethod int <p>
one of the PAINT_ constants
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.color.php -

comment

(PECL imagick 2.0.0)
Adds a comment

public comment(string $comment): bool

Parameters:

Parameter Type Description
$comment string <p>
The comment string to add to vector output stream
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.comment.php -

getClipPath

(PECL imagick 2.0.0)
Obtains the current clipping path ID

public getClipPath(): string|false

Return Value:

a string containing the clip path ID or false if no clip path exists.

See Also:

  • https://php.net/manual/en/imagickdraw.getclippath.php -

getClipRule

(PECL imagick 2.0.0)
Returns the current polygon fill rule

public getClipRule(): int

Return Value:

one of the FILLRULE_ constants.

See Also:

  • https://php.net/manual/en/imagickdraw.getcliprule.php -

getClipUnits

(PECL imagick 2.0.0)
Returns the interpretation of clip path units

public getClipUnits(): int

Return Value:

an int on success.

See Also:

  • https://php.net/manual/en/imagickdraw.getclipunits.php -

getFillColor

(PECL imagick 2.0.0)
Returns the fill color

public getFillColor(): \ImagickPixel

Return Value:

an ImagickPixel object.

See Also:

  • https://php.net/manual/en/imagickdraw.getfillcolor.php -

getFillOpacity

(PECL imagick 2.0.0)
Returns the opacity used when drawing

public getFillOpacity(): float

Return Value:

The opacity.

See Also:

  • https://php.net/manual/en/imagickdraw.getfillopacity.php -

getFillRule

(PECL imagick 2.0.0)
Returns the fill rule

public getFillRule(): int

Return Value:

a FILLRULE_ constant

See Also:

  • https://php.net/manual/en/imagickdraw.getfillrule.php -

getGravity

(PECL imagick 2.0.0)
Returns the text placement gravity

public getGravity(): int

Return Value:

a GRAVITY_ constant on success and 0 if no gravity is set.

See Also:

  • https://php.net/manual/en/imagickdraw.getgravity.php -

getStrokeAntialias

(PECL imagick 2.0.0)
Returns the current stroke antialias setting

public getStrokeAntialias(): bool

Return Value:

TRUE if antialiasing is on and false if it is off.

See Also:

  • https://php.net/manual/en/imagickdraw.getstrokeantialias.php -

getStrokeColor

(PECL imagick 2.0.0)
Returns the color used for stroking object outlines

public getStrokeColor(): \ImagickPixel

Return Value:

an ImagickPixel object which describes the color.

See Also:

  • https://php.net/manual/en/imagickdraw.getstrokecolor.php -

getStrokeDashArray

(PECL imagick 2.0.0)
Returns an array representing the pattern of dashes and gaps used to stroke paths

public getStrokeDashArray(): array

Return Value:

an array on success and empty array if not set.

See Also:

  • https://php.net/manual/en/imagickdraw.getstrokedasharray.php -

getStrokeDashOffset

(PECL imagick 2.0.0)
Returns the offset into the dash pattern to start the dash

public getStrokeDashOffset(): float

Return Value:

a float representing the offset and 0 if it's not set.

See Also:

  • https://php.net/manual/en/imagickdraw.getstrokedashoffset.php -

getStrokeLineCap

(PECL imagick 2.0.0)
Returns the shape to be used at the end of open subpaths when they are stroked

public getStrokeLineCap(): int

Return Value:

one of the LINECAP_ constants or 0 if stroke linecap is not set.

See Also:

  • https://php.net/manual/en/imagickdraw.getstrokelinecap.php -

getStrokeLineJoin

(PECL imagick 2.0.0)
Returns the shape to be used at the corners of paths when they are stroked

public getStrokeLineJoin(): int

Return Value:

one of the LINEJOIN_ constants or 0 if stroke line join is not set.

See Also:

  • https://php.net/manual/en/imagickdraw.getstrokelinejoin.php -

getStrokeMiterLimit

(PECL imagick 2.0.0)
Returns the stroke miter limit

public getStrokeMiterLimit(): int

Return Value:

an int describing the miter limit and 0 if no miter limit is set.

See Also:

  • https://php.net/manual/en/imagickdraw.getstrokemiterlimit.php -

getStrokeOpacity

(PECL imagick 2.0.0)
Returns the opacity of stroked object outlines

public getStrokeOpacity(): float

Return Value:

a float describing the opacity.

See Also:

  • https://php.net/manual/en/imagickdraw.getstrokeopacity.php -

getStrokeWidth

(PECL imagick 2.0.0)
Returns the width of the stroke used to draw object outlines

public getStrokeWidth(): float

Return Value:

a float describing the stroke width.

See Also:

  • https://php.net/manual/en/imagickdraw.getstrokewidth.php -

getTextAlignment

(PECL imagick 2.0.0)
Returns the text alignment

public getTextAlignment(): int

Return Value:

one of the ALIGN_ constants and 0 if no align is set.

See Also:

  • https://php.net/manual/en/imagickdraw.gettextalignment.php -

getTextAntialias

(PECL imagick 2.0.0)
Returns the current text antialias setting

public getTextAntialias(): bool

Return Value:

TRUE if text is antialiased and false if not.

See Also:

  • https://php.net/manual/en/imagickdraw.gettextantialias.php -

getVectorGraphics

(PECL imagick 2.0.0)
Returns a string containing vector graphics

public getVectorGraphics(): string

Return Value:

a string containing the vector graphics.

See Also:

  • https://php.net/manual/en/imagickdraw.getvectorgraphics.php -

getTextUnderColor

(PECL imagick 2.0.0)
Returns the text under color

public getTextUnderColor(): \ImagickPixel

Return Value:

an ImagickPixel object describing the color.

See Also:

  • https://php.net/manual/en/imagickdraw.gettextundercolor.php -

pathClose

(PECL imagick 2.0.0)
Adds a path element to the current path

public pathClose(): bool

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.pathclose.php -

pathCurveToAbsolute

(PECL imagick 2.0.0)
Draws a cubic Bezier curve

public pathCurveToAbsolute(float $x1, float $y1, float $x2, float $y2, float $x, float $y): bool

Parameters:

Parameter Type Description
$x1 float <p>
x coordinate of the first control point
</p>
$y1 float <p>
y coordinate of the first control point
</p>
$x2 float <p>
x coordinate of the second control point
</p>
$y2 float <p>
y coordinate of the first control point
</p>
$x float <p>
x coordinate of the curve end
</p>
$y float <p>
y coordinate of the curve end
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.pathcurvetoabsolute.php -

pathCurveToRelative

(PECL imagick 2.0.0)
Draws a cubic Bezier curve

public pathCurveToRelative(float $x1, float $y1, float $x2, float $y2, float $x, float $y): bool

Parameters:

Parameter Type Description
$x1 float <p>
x coordinate of starting control point
</p>
$y1 float <p>
y coordinate of starting control point
</p>
$x2 float <p>
x coordinate of ending control point
</p>
$y2 float <p>
y coordinate of ending control point
</p>
$x float <p>
ending x coordinate
</p>
$y float <p>
ending y coordinate
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.pathcurvetorelative.php -

pathCurveToQuadraticBezierAbsolute

(PECL imagick 2.0.0)
Draws a quadratic Bezier curve

public pathCurveToQuadraticBezierAbsolute(float $x1, float $y1, float $x, float $y): bool

Parameters:

Parameter Type Description
$x1 float <p>
x coordinate of the control point
</p>
$y1 float <p>
y coordinate of the control point
</p>
$x float <p>
x coordinate of the end point
</p>
$y float <p>
y coordinate of the end point
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.pathcurvetoquadraticbezierabsolute.php -

pathCurveToQuadraticBezierRelative

(PECL imagick 2.0.0)
Draws a quadratic Bezier curve

public pathCurveToQuadraticBezierRelative(float $x1, float $y1, float $x, float $y): bool

Parameters:

Parameter Type Description
$x1 float <p>
starting x coordinate
</p>
$y1 float <p>
starting y coordinate
</p>
$x float <p>
ending x coordinate
</p>
$y float <p>
ending y coordinate
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.pathcurvetoquadraticbezierrelative.php -

pathCurveToQuadraticBezierSmoothAbsolute

(PECL imagick 2.0.0)
Draws a quadratic Bezier curve

public pathCurveToQuadraticBezierSmoothAbsolute(float $x, float $y): bool

Parameters:

Parameter Type Description
$x float <p>
ending x coordinate
</p>
$y float <p>
ending y coordinate
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.pathcurvetoquadraticbeziersmoothabsolute.php -

pathCurveToQuadraticBezierSmoothRelative

(PECL imagick 2.0.0)
Draws a quadratic Bezier curve

public pathCurveToQuadraticBezierSmoothRelative(float $x, float $y): bool

Parameters:

Parameter Type Description
$x float <p>
ending x coordinate
</p>
$y float <p>
ending y coordinate
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.pathcurvetoquadraticbeziersmoothrelative.php -

pathCurveToSmoothAbsolute

(PECL imagick 2.0.0)
Draws a cubic Bezier curve

public pathCurveToSmoothAbsolute(float $x2, float $y2, float $x, float $y): bool

Parameters:

Parameter Type Description
$x2 float <p>
x coordinate of the second control point
</p>
$y2 float <p>
y coordinate of the second control point
</p>
$x float <p>
x coordinate of the ending point
</p>
$y float <p>
y coordinate of the ending point
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.pathcurvetosmoothabsolute.php -

pathCurveToSmoothRelative

(PECL imagick 2.0.0)
Draws a cubic Bezier curve

public pathCurveToSmoothRelative(float $x2, float $y2, float $x, float $y): bool

Parameters:

Parameter Type Description
$x2 float <p>
x coordinate of the second control point
</p>
$y2 float <p>
y coordinate of the second control point
</p>
$x float <p>
x coordinate of the ending point
</p>
$y float <p>
y coordinate of the ending point
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.pathcurvetosmoothrelative.php -

pathEllipticArcAbsolute

(PECL imagick 2.0.0)
Draws an elliptical arc

public pathEllipticArcAbsolute(float $rx, float $ry, float $x_axis_rotation, bool $large_arc_flag, bool $sweep_flag, float $x, float $y): bool

Parameters:

Parameter Type Description
$rx float <p>
x radius
</p>
$ry float <p>
y radius
</p>
$x_axis_rotation float <p>
x axis rotation
</p>
$large_arc_flag bool <p>
large arc flag
</p>
$sweep_flag bool <p>
sweep flag
</p>
$x float <p>
x coordinate
</p>
$y float <p>
y coordinate
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.pathellipticarcabsolute.php -

pathEllipticArcRelative

(PECL imagick 2.0.0)
Draws an elliptical arc

public pathEllipticArcRelative(float $rx, float $ry, float $x_axis_rotation, bool $large_arc_flag, bool $sweep_flag, float $x, float $y): bool

Parameters:

Parameter Type Description
$rx float <p>
x radius
</p>
$ry float <p>
y radius
</p>
$x_axis_rotation float <p>
x axis rotation
</p>
$large_arc_flag bool <p>
large arc flag
</p>
$sweep_flag bool <p>
sweep flag
</p>
$x float <p>
x coordinate
</p>
$y float <p>
y coordinate
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.pathellipticarcrelative.php -

pathFinish

(PECL imagick 2.0.0)
Terminates the current path

public pathFinish(): bool

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.pathfinish.php -

pathLineToAbsolute

(PECL imagick 2.0.0)
Draws a line path

public pathLineToAbsolute(float $x, float $y): bool

Parameters:

Parameter Type Description
$x float <p>
starting x coordinate
</p>
$y float <p>
ending x coordinate
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.pathlinetoabsolute.php -

pathLineToRelative

(PECL imagick 2.0.0)
Draws a line path

public pathLineToRelative(float $x, float $y): bool

Parameters:

Parameter Type Description
$x float <p>
starting x coordinate
</p>
$y float <p>
starting y coordinate
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.pathlinetorelative.php -

pathLineToHorizontalAbsolute

(PECL imagick 2.0.0)
Draws a horizontal line path

public pathLineToHorizontalAbsolute(float $x): bool

Parameters:

Parameter Type Description
$x float <p>
x coordinate
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.pathlinetohorizontalabsolute.php -

pathLineToHorizontalRelative

(PECL imagick 2.0.0)
Draws a horizontal line

public pathLineToHorizontalRelative(float $x): bool

Parameters:

Parameter Type Description
$x float <p>
x coordinate
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.pathlinetohorizontalrelative.php -

pathLineToVerticalAbsolute

(PECL imagick 2.0.0)
Draws a vertical line

public pathLineToVerticalAbsolute(float $y): bool

Parameters:

Parameter Type Description
$y float <p>
y coordinate
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.pathlinetoverticalabsolute.php -

pathLineToVerticalRelative

(PECL imagick 2.0.0)
Draws a vertical line path

public pathLineToVerticalRelative(float $y): bool

Parameters:

Parameter Type Description
$y float <p>
y coordinate
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.pathlinetoverticalrelative.php -

pathMoveToAbsolute

(PECL imagick 2.0.0)
Starts a new sub-path

public pathMoveToAbsolute(float $x, float $y): bool

Parameters:

Parameter Type Description
$x float <p>
x coordinate of the starting point
</p>
$y float <p>
y coordinate of the starting point
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.pathmovetoabsolute.php -

pathMoveToRelative

(PECL imagick 2.0.0)
Starts a new sub-path

public pathMoveToRelative(float $x, float $y): bool

Parameters:

Parameter Type Description
$x float <p>
target x coordinate
</p>
$y float <p>
target y coordinate
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.pathmovetorelative.php -

pathStart

(PECL imagick 2.0.0)
Declares the start of a path drawing list

public pathStart(): bool

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.pathstart.php -

polyline

(PECL imagick 2.0.0)
Draws a polyline

public polyline(array $coordinates): bool

Parameters:

Parameter Type Description
$coordinates array <p>
array of x and y coordinates: array( array( 'x' => 4, 'y' => 6 ), array( 'x' => 8, 'y' => 10 ) )
</p>

Return Value:

TRUE on success.

See Also:

  • https://php.net/manual/en/imagickdraw.polyline.php -

popClipPath

(PECL imagick 2.0.0)
Terminates a clip path definition

public popClipPath(): bool

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.popclippath.php -

popDefs

(PECL imagick 2.0.0)
Terminates a definition list

public popDefs(): bool

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.popdefs.php -

popPattern

(PECL imagick 2.0.0)
Terminates a pattern definition

public popPattern(): bool

Return Value:

TRUE on success or FALSE on failure.

See Also:

  • https://php.net/manual/en/imagickdraw.poppattern.php -

pushClipPath

(PECL imagick 2.0.0)
Starts a clip path definition

public pushClipPath(string $clip_mask_id): bool

Parameters:

Parameter Type Description
$clip_mask_id string <p>
Clip mask Id
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.pushclippath.php -

pushDefs

(PECL imagick 2.0.0)
Indicates that following commands create named elements for early processing

public pushDefs(): bool

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.pushdefs.php -

pushPattern

(PECL imagick 2.0.0)
Indicates that subsequent commands up to a ImagickDraw::opPattern() command comprise the definition of a named pattern

public pushPattern(string $pattern_id, float $x, float $y, float $width, float $height): bool

Parameters:

Parameter Type Description
$pattern_id string <p>
the pattern Id
</p>
$x float <p>
x coordinate of the top-left corner
</p>
$y float <p>
y coordinate of the top-left corner
</p>
$width float <p>
width of the pattern
</p>
$height float <p>
height of the pattern
</p>

Return Value:

TRUE on success or FALSE on failure.

See Also:

  • https://php.net/manual/en/imagickdraw.pushpattern.php -

render

(PECL imagick 2.0.0)
Renders all preceding drawing commands onto the image

public render(): bool

Return Value:

TRUE on success or FALSE on failure.

See Also:

  • https://php.net/manual/en/imagickdraw.render.php -

rotate

(PECL imagick 2.0.0)
Applies the specified rotation to the current coordinate space

public rotate(float $degrees): bool

Parameters:

Parameter Type Description
$degrees float <p>
degrees to rotate
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.rotate.php -

scale

(PECL imagick 2.0.0)
Adjusts the scaling factor

public scale(float $x, float $y): bool

Parameters:

Parameter Type Description
$x float <p>
horizontal factor
</p>
$y float <p>
vertical factor
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.scale.php -

setClipPath

(PECL imagick 2.0.0)
Associates a named clipping path with the image

public setClipPath(string $clip_mask): bool

Parameters:

Parameter Type Description
$clip_mask string <p>
the clipping path name
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.setclippath.php -

setClipRule

(PECL imagick 2.0.0)
Set the polygon fill rule to be used by the clipping path

public setClipRule(int $fill_rule): bool

Parameters:

Parameter Type Description
$fill_rule int <p>
FILLRULE_ constant
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.setcliprule.php -

setClipUnits

(PECL imagick 2.0.0)
Sets the interpretation of clip path units

public setClipUnits(int $clip_units): bool

Parameters:

Parameter Type Description
$clip_units int <p>
the number of clip units
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.setclipunits.php -

setFillOpacity

(PECL imagick 2.0.0)
Sets the opacity to use when drawing using the fill color or fill texture

public setFillOpacity(float $fillOpacity): bool

Parameters:

Parameter Type Description
$fillOpacity float <p>
the fill opacity
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.setfillopacity.php -

setFillPatternURL

(PECL imagick 2.0.0)
Sets the URL to use as a fill pattern for filling objects

public setFillPatternURL(string $fill_url): bool

Parameters:

Parameter Type Description
$fill_url string <p>
URL to use to obtain fill pattern.
</p>

Return Value:

TRUE on success or FALSE on failure.

See Also:

  • https://php.net/manual/en/imagickdraw.setfillpatternurl.php -

setFillRule

(PECL imagick 2.0.0)
Sets the fill rule to use while drawing polygons

public setFillRule(int $fill_rule): bool

Parameters:

Parameter Type Description
$fill_rule int <p>
FILLRULE_ constant
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.setfillrule.php -

setGravity

(PECL imagick 2.0.0)
Sets the text placement gravity

public setGravity(int $gravity): bool

Parameters:

Parameter Type Description
$gravity int <p>
GRAVITY_ constant
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.setgravity.php -

setStrokePatternURL

(PECL imagick 2.0.0)
Sets the pattern used for stroking object outlines

public setStrokePatternURL(string $stroke_url): bool

Parameters:

Parameter Type Description
$stroke_url string <p>
stroke URL
</p>

Return Value:

imagick.imagickdraw.return.success;

See Also:

  • https://php.net/manual/en/imagickdraw.setstrokepatternurl.php -

setStrokeDashOffset

(PECL imagick 2.0.0)
Specifies the offset into the dash pattern to start the dash

public setStrokeDashOffset(float $dash_offset): bool

Parameters:

Parameter Type Description
$dash_offset float <p>
dash offset
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.setstrokedashoffset.php -

setStrokeLineCap

(PECL imagick 2.0.0)
Specifies the shape to be used at the end of open subpaths when they are stroked

public setStrokeLineCap(int $linecap): bool

Parameters:

Parameter Type Description
$linecap int <p>
LINECAP_ constant
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.setstrokelinecap.php -

setStrokeLineJoin

(PECL imagick 2.0.0)
Specifies the shape to be used at the corners of paths when they are stroked

public setStrokeLineJoin(int $linejoin): bool

Parameters:

Parameter Type Description
$linejoin int <p>
LINEJOIN_ constant
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.setstrokelinejoin.php -

setStrokeMiterLimit

(PECL imagick 2.0.0)
Specifies the miter limit

public setStrokeMiterLimit(int $miterlimit): bool

Parameters:

Parameter Type Description
$miterlimit int <p>
the miter limit
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.setstrokemiterlimit.php -

setStrokeOpacity

(PECL imagick 2.0.0)
Specifies the opacity of stroked object outlines

public setStrokeOpacity(float $stroke_opacity): bool

Parameters:

Parameter Type Description
$stroke_opacity float <p>
stroke opacity. 1.0 is fully opaque
</p>

Return Value:

No value is returned.

See Also:

  • https://php.net/manual/en/imagickdraw.setstrokeopacity.php -

setVectorGraphics

(PECL imagick 2.0.0)
Sets the vector graphics

public setVectorGraphics(string $xml): bool

Parameters:

Parameter Type Description
$xml string <p>
xml containing the vector graphics
</p>

Return Value:

TRUE on success or FALSE on failure.

See Also:

  • https://php.net/manual/en/imagickdraw.setvectorgraphics.php -

pop

(PECL imagick 2.0.0)
Destroys the current ImagickDraw in the stack, and returns to the previously pushed ImagickDraw

public pop(): bool

Return Value:

TRUE on success and false on failure.

See Also:

  • https://php.net/manual/en/imagickdraw.pop.php -

push

(PECL imagick 2.0.0)
Clones the current ImagickDraw and pushes it to the stack

public push(): bool

Return Value:

TRUE on success or FALSE on failure.

See Also:

  • https://php.net/manual/en/imagickdraw.push.php -

setStrokeDashArray

(PECL imagick 2.0.0)
Specifies the pattern of dashes and gaps used to stroke paths

public setStrokeDashArray(array $dashArray): bool

Parameters:

Parameter Type Description
$dashArray array <p>
array of floats
</p>

Return Value:

TRUE on success.

See Also:

  • https://php.net/manual/en/imagickdraw.setstrokedasharray.php -

setOpacity

Sets the opacity to use when drawing using the fill or stroke color or texture. Fully opaque is 1.0.

public setOpacity(float $opacity): void

Parameters:

Parameter Type Description
$opacity float

getOpacity

Returns the opacity used when drawing with the fill or stroke color or texture. Fully opaque is 1.0.

public getOpacity(): float

setFontResolution

Sets the image font resolution.

public setFontResolution(float $x, float $y): bool

Parameters:

Parameter Type Description
$x float
$y float

getFontResolution

Gets the image X and Y resolution.

public getFontResolution(): array

getTextDirection

Returns the direction that will be used when annotating with text.

public getTextDirection(): bool

setTextDirection

Sets the font style to use when annotating with text. The AnyStyle enumeration acts as a wild-card "don't care" option.

public setTextDirection(int $direction): bool

Parameters:

Parameter Type Description
$direction int

getBorderColor

Returns the border color used for drawing bordered objects.

public getBorderColor(): \ImagickPixel

setBorderColor

Sets the border color to be used for drawing bordered objects.

public setBorderColor(\ImagickPixel $color): bool

Parameters:

Parameter Type Description
$color \ImagickPixel

getDensity

Obtains the vertical and horizontal resolution.

public getDensity(): string|null

setDensity

Sets the vertical and horizontal resolution.

public setDensity(string $density_string): bool

Parameters:

Parameter Type Description
$density_string string


Automatically generated on 2025-03-18