ImagickDraw
- Full name:
\ImagickDraw
See Also:
- https://php.net/manual/en/class.imagickdraw.php -
Methods
resetVectorGraphics
getTextKerning
setTextKerning
Parameters:
Parameter | Type | Description |
---|---|---|
$kerning |
mixed |
getTextInterWordSpacing
setTextInterWordSpacing
Parameters:
Parameter | Type | Description |
---|---|---|
$spacing |
mixed |
getTextInterLineSpacing
setTextInterLineSpacing
Parameters:
Parameter | Type | Description |
---|---|---|
$spacing |
mixed |
__construct
(PECL imagick 2.0.0)
The ImagickDraw constructor
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
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
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
Parameters:
Parameter | Type | Description |
---|---|---|
$x_resolution |
mixed | |
$y_resolution |
mixed |
setStrokeColor
(PECL imagick 2.0.0)
Sets the color used for stroking object outlines
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
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
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
Return Value:
an ImagickDraw object.
See Also:
- https://php.net/manual/en/imagickdraw.clear.php -
circle
(PECL imagick 2.0.0)
Draws a circle
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
setFontStretch
(PECL imagick 2.0.0)
Sets the font stretch to use when annotating with text
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Return Value:
The opacity.
See Also:
- https://php.net/manual/en/imagickdraw.getfillopacity.php -
getFillRule
(PECL imagick 2.0.0)
Returns the fill rule
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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.
setFontResolution
Sets the image font resolution.
Parameters:
Parameter | Type | Description |
---|---|---|
$x |
float | |
$y |
float |
getFontResolution
Gets the image X and Y resolution.
getTextDirection
Returns the direction that will be used when annotating with text.
setTextDirection
Sets the font style to use when annotating with text. The AnyStyle enumeration acts as a wild-card "don't care" option.
Parameters:
Parameter | Type | Description |
---|---|---|
$direction |
int |
getBorderColor
Returns the border color used for drawing bordered objects.
setBorderColor
Sets the border color to be used for drawing bordered objects.
Parameters:
Parameter | Type | Description |
---|---|---|
$color |
\ImagickPixel |
getDensity
Obtains the vertical and horizontal resolution.
setDensity
Sets the vertical and horizontal resolution.
Parameters:
Parameter | Type | Description |
---|---|---|
$density_string |
string |
Automatically generated on 2025-03-18