ImagickDraw
class ImagickDraw (View source)
Methods
No description
No description
No description
No description
No description
No description
No description
(PECL imagick 2.0.0)
The ImagickDraw constructor
(PECL imagick 2.0.0)
Sets the fill color to be used for drawing filled objects
(PECL imagick 2.0.0)
Sets the opacity to use when drawing using the fill color or fill texture
Sets the image resolution
(PECL imagick 2.0.0)
Sets the color used for stroking object outlines
(PECL imagick 2.0.0)
Specifies the opacity of stroked object outlines
(PECL imagick 2.0.0)
Sets the width of the stroke used to draw object outlines
(PECL imagick 2.0.0)
Clears the ImagickDraw
(PECL imagick 2.0.0)
Draws a circle
(PECL imagick 2.0.0)
Draws text on the image
(PECL imagick 2.0.0)
Controls whether text is antialiased
(PECL imagick 2.0.0)
Specifies specifies the text code set
(PECL imagick 2.0.0)
Sets the fully-specified font to use when annotating with text
(PECL imagick 2.0.0)
Sets the font family to use when annotating with text
(PECL imagick 2.0.0)
Sets the font pointsize to use when annotating with text
(PECL imagick 2.0.0)
Sets the font style to use when annotating with text
(PECL imagick 2.0.0)
Sets the font weight
(PECL imagick 2.0.0)
Returns the font
(PECL imagick 2.0.0)
Returns the font family
(PECL imagick 2.0.0)
Returns the font pointsize
(PECL imagick 2.0.0)
Returns the font style
(PECL imagick 2.0.0)
Returns the font weight
(PECL imagick 2.0.0)
Frees all associated resources
(PECL imagick 2.0.0)
Draws a rectangle
(PECL imagick 2.0.0)
Draws a rounded rectangle
(PECL imagick 2.0.0)
Draws an ellipse on the image
(PECL imagick 2.0.0)
Skews the current coordinate system in the horizontal direction
(PECL imagick 2.0.0)
Skews the current coordinate system in the vertical direction
(PECL imagick 2.0.0)
Applies a translation to the current coordinate system
(PECL imagick 2.0.0)
Draws a line
(PECL imagick 2.0.0)
Draws an arc
(PECL imagick 2.0.0)
Paints on the image's opacity channel
(PECL imagick 2.0.0)
Draws a polygon
(PECL imagick 2.0.0)
Draws a point
(PECL imagick 2.0.0)
Returns the text decoration
(PECL imagick 2.0.0)
Returns the code set used for text annotations
No description
(PECL imagick 2.0.0)
Sets the font stretch to use when annotating with text
(PECL imagick 2.0.0)
Controls whether stroked outlines are antialiased
(PECL imagick 2.0.0)
Specifies a text alignment
(PECL imagick 2.0.0)
Specifies a decoration
(PECL imagick 2.0.0)
Specifies the color of a background rectangle
(PECL imagick 2.0.0)
Sets the overall canvas size
(PECL imagick 2.0.0)
Adjusts the current affine transformation matrix
(PECL imagick 2.0.0)
Draws a bezier curve
(PECL imagick 2.0.0)
Draws color on image
(PECL imagick 2.0.0)
Adds a comment
(PECL imagick 2.0.0)
Obtains the current clipping path ID
(PECL imagick 2.0.0)
Returns the current polygon fill rule
(PECL imagick 2.0.0)
Returns the interpretation of clip path units
(PECL imagick 2.0.0)
Returns the fill color
(PECL imagick 2.0.0)
Returns the opacity used when drawing
(PECL imagick 2.0.0)
Returns the fill rule
(PECL imagick 2.0.0)
Returns the text placement gravity
(PECL imagick 2.0.0)
Returns the current stroke antialias setting
(PECL imagick 2.0.0)
Returns the color used for stroking object outlines
(PECL imagick 2.0.0)
Returns an array representing the pattern of dashes and gaps used to stroke paths
(PECL imagick 2.0.0)
Returns the offset into the dash pattern to start the dash
(PECL imagick 2.0.0)
Returns the shape to be used at the end of open subpaths when they are stroked
(PECL imagick 2.0.0)
Returns the shape to be used at the corners of paths when they are stroked
(PECL imagick 2.0.0)
Returns the stroke miter limit
(PECL imagick 2.0.0)
Returns the opacity of stroked object outlines
(PECL imagick 2.0.0)
Returns the width of the stroke used to draw object outlines
(PECL imagick 2.0.0)
Returns the text alignment
(PECL imagick 2.0.0)
Returns the current text antialias setting
(PECL imagick 2.0.0)
Returns a string containing vector graphics
(PECL imagick 2.0.0)
Returns the text under color
(PECL imagick 2.0.0)
Adds a path element to the current path
(PECL imagick 2.0.0)
Draws a cubic Bezier curve
(PECL imagick 2.0.0)
Draws a cubic Bezier curve
(PECL imagick 2.0.0)
Draws a quadratic Bezier curve
(PECL imagick 2.0.0)
Draws a quadratic Bezier curve
(PECL imagick 2.0.0)
Draws a quadratic Bezier curve
(PECL imagick 2.0.0)
Draws a quadratic Bezier curve
(PECL imagick 2.0.0)
Draws a cubic Bezier curve
(PECL imagick 2.0.0)
Draws a cubic Bezier curve
(PECL imagick 2.0.0)
Draws an elliptical arc
(PECL imagick 2.0.0)
Draws an elliptical arc
(PECL imagick 2.0.0)
Terminates the current path
(PECL imagick 2.0.0)
Draws a line path
(PECL imagick 2.0.0)
Draws a line path
(PECL imagick 2.0.0)
Draws a horizontal line path
(PECL imagick 2.0.0)
Draws a horizontal line
(PECL imagick 2.0.0)
Draws a vertical line
(PECL imagick 2.0.0)
Draws a vertical line path
(PECL imagick 2.0.0)
Starts a new sub-path
(PECL imagick 2.0.0)
Starts a new sub-path
(PECL imagick 2.0.0)
Declares the start of a path drawing list
(PECL imagick 2.0.0)
Draws a polyline
(PECL imagick 2.0.0)
Terminates a clip path definition
(PECL imagick 2.0.0)
Terminates a definition list
(PECL imagick 2.0.0)
Terminates a pattern definition
(PECL imagick 2.0.0)
Starts a clip path definition
(PECL imagick 2.0.0)
Indicates that following commands create named elements for early processing
(PECL imagick 2.0.0)
Indicates that subsequent commands up to a ImagickDraw::opPattern() command comprise the definition of a named pattern
(PECL imagick 2.0.0)
Renders all preceding drawing commands onto the image
(PECL imagick 2.0.0)
Applies the specified rotation to the current coordinate space
(PECL imagick 2.0.0)
Adjusts the scaling factor
(PECL imagick 2.0.0)
Associates a named clipping path with the image
(PECL imagick 2.0.0)
Set the polygon fill rule to be used by the clipping path
(PECL imagick 2.0.0)
Sets the interpretation of clip path units
(PECL imagick 2.0.0)
Sets the opacity to use when drawing using the fill color or fill texture
(PECL imagick 2.0.0)
Sets the URL to use as a fill pattern for filling objects
(PECL imagick 2.0.0)
Sets the fill rule to use while drawing polygons
(PECL imagick 2.0.0)
Sets the text placement gravity
(PECL imagick 2.0.0)
Sets the pattern used for stroking object outlines
(PECL imagick 2.0.0)
Specifies the offset into the dash pattern to start the dash
(PECL imagick 2.0.0)
Specifies the shape to be used at the end of open subpaths when they are stroked
(PECL imagick 2.0.0)
Specifies the shape to be used at the corners of paths when they are stroked
(PECL imagick 2.0.0)
Specifies the miter limit
(PECL imagick 2.0.0)
Specifies the opacity of stroked object outlines
(PECL imagick 2.0.0)
Sets the vector graphics
(PECL imagick 2.0.0)
Destroys the current ImagickDraw in the stack, and returns to the previously pushed ImagickDraw
(PECL imagick 2.0.0)
Clones the current ImagickDraw and pushes it to the stack
(PECL imagick 2.0.0)
Specifies the pattern of dashes and gaps used to stroke paths
Sets the opacity to use when drawing using the fill or stroke color or texture. Fully opaque is 1.0.
Returns the opacity used when drawing with the fill or stroke color or texture. Fully opaque is 1.0.
Sets the image font resolution.
Gets the image X and Y resolution.
Returns the direction that will be used when annotating with text.
Sets the font style to use when annotating with text. The AnyStyle enumeration acts as a wild-card "don't care" option.
Returns the border color used for drawing bordered objects.
Obtains the vertical and horizontal resolution.
Sets the vertical and horizontal resolution.
Makes an exact copy of the specified ImagickDraw object
Details
resetVectorGraphics()
No description
getTextKerning()
No description
setTextKerning(float $kerning)
No description
getTextInterWordSpacing()
No description
setTextInterWordSpacing($spacing)
No description
getTextInterLineSpacing()
No description
setTextInterLineSpacing($spacing)
No description
__construct()
(PECL imagick 2.0.0)
The ImagickDraw constructor
bool
setFillColor(ImagickPixel $fill_pixel)
(PECL imagick 2.0.0)
Sets the fill color to be used for drawing filled objects
bool
setFillAlpha(float $opacity)
(PECL imagick 2.0.0)
Sets the opacity to use when drawing using the fill color or fill texture
bool
setResolution(float $x_resolution, float $y_resolution)
Sets the image resolution
bool
setStrokeColor(ImagickPixel $stroke_pixel)
(PECL imagick 2.0.0)
Sets the color used for stroking object outlines
bool
setStrokeAlpha(float $opacity)
(PECL imagick 2.0.0)
Specifies the opacity of stroked object outlines
bool
setStrokeWidth(float $stroke_width)
(PECL imagick 2.0.0)
Sets the width of the stroke used to draw object outlines
bool
clear()
(PECL imagick 2.0.0)
Clears the ImagickDraw
bool
circle(float $ox, float $oy, float $px, float $py)
(PECL imagick 2.0.0)
Draws a circle
bool
annotation(float $x, float $y, string $text)
(PECL imagick 2.0.0)
Draws text on the image
bool
setTextAntialias(bool $antiAlias)
(PECL imagick 2.0.0)
Controls whether text is antialiased
bool
setTextEncoding(string $encoding)
(PECL imagick 2.0.0)
Specifies specifies the text code set
bool
setFont(string $font_name)
(PECL imagick 2.0.0)
Sets the fully-specified font to use when annotating with text
bool
setFontFamily(string $font_family)
(PECL imagick 2.0.0)
Sets the font family to use when annotating with text
bool
setFontSize(float $pointsize)
(PECL imagick 2.0.0)
Sets the font pointsize to use when annotating with text
bool
setFontStyle(int $style)
(PECL imagick 2.0.0)
Sets the font style to use when annotating with text
bool
setFontWeight(int $font_weight)
(PECL imagick 2.0.0)
Sets the font weight
string|false
getFont()
(PECL imagick 2.0.0)
Returns the font
string|false
getFontFamily()
(PECL imagick 2.0.0)
Returns the font family
float
getFontSize()
(PECL imagick 2.0.0)
Returns the font pointsize
int
getFontStyle()
(PECL imagick 2.0.0)
Returns the font style
int
getFontWeight()
(PECL imagick 2.0.0)
Returns the font weight
bool
destroy()
(PECL imagick 2.0.0)
Frees all associated resources
bool
rectangle(float $x1, float $y1, float $x2, float $y2)
(PECL imagick 2.0.0)
Draws a rectangle
bool
roundRectangle(float $x1, float $y1, float $x2, float $y2, float $rx, float $ry)
(PECL imagick 2.0.0)
Draws a rounded rectangle
bool
ellipse(float $ox, float $oy, float $rx, float $ry, float $start, float $end)
(PECL imagick 2.0.0)
Draws an ellipse on the image
bool
skewX(float $degrees)
(PECL imagick 2.0.0)
Skews the current coordinate system in the horizontal direction
bool
skewY(float $degrees)
(PECL imagick 2.0.0)
Skews the current coordinate system in the vertical direction
bool
translate(float $x, float $y)
(PECL imagick 2.0.0)
Applies a translation to the current coordinate system
bool
line(float $sx, float $sy, float $ex, float $ey)
(PECL imagick 2.0.0)
Draws a line
bool
arc(float $sx, float $sy, float $ex, float $ey, float $sd, float $ed)
(PECL imagick 2.0.0)
Draws an arc
bool
matte(float $x, float $y, int $paintMethod)
(PECL imagick 2.0.0)
Paints on the image's opacity channel
bool
polygon(array $coordinates)
(PECL imagick 2.0.0)
Draws a polygon
bool
point(float $x, float $y)
(PECL imagick 2.0.0)
Draws a point
int
getTextDecoration()
(PECL imagick 2.0.0)
Returns the text decoration
string
getTextEncoding()
(PECL imagick 2.0.0)
Returns the code set used for text annotations
getFontStretch()
No description
bool
setFontStretch(int $fontStretch)
(PECL imagick 2.0.0)
Sets the font stretch to use when annotating with text
bool
setStrokeAntialias(bool $stroke_antialias)
(PECL imagick 2.0.0)
Controls whether stroked outlines are antialiased
bool
setTextAlignment(int $alignment)
(PECL imagick 2.0.0)
Specifies a text alignment
bool
setTextDecoration(int $decoration)
(PECL imagick 2.0.0)
Specifies a decoration
bool
setTextUnderColor(ImagickPixel $under_color)
(PECL imagick 2.0.0)
Specifies the color of a background rectangle
bool
setViewbox(int $x1, int $y1, int $x2, int $y2)
(PECL imagick 2.0.0)
Sets the overall canvas size
bool
affine(array $affine)
(PECL imagick 2.0.0)
Adjusts the current affine transformation matrix
bool
bezier(array $coordinates)
(PECL imagick 2.0.0)
Draws a bezier curve
bool
composite(int $compose, float $x, float $y, float $width, float $height, Imagick $compositeWand)
(PECL imagick 2.0.0)
Composites an image onto the current image
bool
color(float $x, float $y, int $paintMethod)
(PECL imagick 2.0.0)
Draws color on image
bool
comment(string $comment)
(PECL imagick 2.0.0)
Adds a comment
string|false
getClipPath()
(PECL imagick 2.0.0)
Obtains the current clipping path ID
int
getClipRule()
(PECL imagick 2.0.0)
Returns the current polygon fill rule
int
getClipUnits()
(PECL imagick 2.0.0)
Returns the interpretation of clip path units
ImagickPixel
getFillColor()
(PECL imagick 2.0.0)
Returns the fill color
float
getFillOpacity()
(PECL imagick 2.0.0)
Returns the opacity used when drawing
int
getFillRule()
(PECL imagick 2.0.0)
Returns the fill rule
int
getGravity()
(PECL imagick 2.0.0)
Returns the text placement gravity
bool
getStrokeAntialias()
(PECL imagick 2.0.0)
Returns the current stroke antialias setting
ImagickPixel
getStrokeColor()
(PECL imagick 2.0.0)
Returns the color used for stroking object outlines
array
getStrokeDashArray()
(PECL imagick 2.0.0)
Returns an array representing the pattern of dashes and gaps used to stroke paths
float
getStrokeDashOffset()
(PECL imagick 2.0.0)
Returns the offset into the dash pattern to start the dash
int
getStrokeLineCap()
(PECL imagick 2.0.0)
Returns the shape to be used at the end of open subpaths when they are stroked
int
getStrokeLineJoin()
(PECL imagick 2.0.0)
Returns the shape to be used at the corners of paths when they are stroked
int
getStrokeMiterLimit()
(PECL imagick 2.0.0)
Returns the stroke miter limit
float
getStrokeOpacity()
(PECL imagick 2.0.0)
Returns the opacity of stroked object outlines
float
getStrokeWidth()
(PECL imagick 2.0.0)
Returns the width of the stroke used to draw object outlines
int
getTextAlignment()
(PECL imagick 2.0.0)
Returns the text alignment
bool
getTextAntialias()
(PECL imagick 2.0.0)
Returns the current text antialias setting
string
getVectorGraphics()
(PECL imagick 2.0.0)
Returns a string containing vector graphics
ImagickPixel
getTextUnderColor()
(PECL imagick 2.0.0)
Returns the text under color
bool
pathClose()
(PECL imagick 2.0.0)
Adds a path element to the current path
bool
pathCurveToAbsolute(float $x1, float $y1, float $x2, float $y2, float $x, float $y)
(PECL imagick 2.0.0)
Draws a cubic Bezier curve
bool
pathCurveToRelative(float $x1, float $y1, float $x2, float $y2, float $x, float $y)
(PECL imagick 2.0.0)
Draws a cubic Bezier curve
bool
pathCurveToQuadraticBezierAbsolute(float $x1, float $y1, float $x, float $y)
(PECL imagick 2.0.0)
Draws a quadratic Bezier curve
bool
pathCurveToQuadraticBezierRelative(float $x1, float $y1, float $x, float $y)
(PECL imagick 2.0.0)
Draws a quadratic Bezier curve
bool
pathCurveToQuadraticBezierSmoothAbsolute(float $x, float $y)
(PECL imagick 2.0.0)
Draws a quadratic Bezier curve
bool
pathCurveToQuadraticBezierSmoothRelative(float $x, float $y)
(PECL imagick 2.0.0)
Draws a quadratic Bezier curve
bool
pathCurveToSmoothAbsolute(float $x2, float $y2, float $x, float $y)
(PECL imagick 2.0.0)
Draws a cubic Bezier curve
bool
pathCurveToSmoothRelative(float $x2, float $y2, float $x, float $y)
(PECL imagick 2.0.0)
Draws a cubic Bezier curve
bool
pathEllipticArcAbsolute(float $rx, float $ry, float $x_axis_rotation, bool $large_arc_flag, bool $sweep_flag, float $x, float $y)
(PECL imagick 2.0.0)
Draws an elliptical arc
bool
pathEllipticArcRelative(float $rx, float $ry, float $x_axis_rotation, bool $large_arc_flag, bool $sweep_flag, float $x, float $y)
(PECL imagick 2.0.0)
Draws an elliptical arc
bool
pathFinish()
(PECL imagick 2.0.0)
Terminates the current path
bool
pathLineToAbsolute(float $x, float $y)
(PECL imagick 2.0.0)
Draws a line path
bool
pathLineToRelative(float $x, float $y)
(PECL imagick 2.0.0)
Draws a line path
bool
pathLineToHorizontalAbsolute(float $x)
(PECL imagick 2.0.0)
Draws a horizontal line path
bool
pathLineToHorizontalRelative(float $x)
(PECL imagick 2.0.0)
Draws a horizontal line
bool
pathLineToVerticalAbsolute(float $y)
(PECL imagick 2.0.0)
Draws a vertical line
bool
pathLineToVerticalRelative(float $y)
(PECL imagick 2.0.0)
Draws a vertical line path
bool
pathMoveToAbsolute(float $x, float $y)
(PECL imagick 2.0.0)
Starts a new sub-path
bool
pathMoveToRelative(float $x, float $y)
(PECL imagick 2.0.0)
Starts a new sub-path
bool
pathStart()
(PECL imagick 2.0.0)
Declares the start of a path drawing list
bool
polyline(array $coordinates)
(PECL imagick 2.0.0)
Draws a polyline
bool
popClipPath()
(PECL imagick 2.0.0)
Terminates a clip path definition
bool
popDefs()
(PECL imagick 2.0.0)
Terminates a definition list
bool
popPattern()
(PECL imagick 2.0.0)
Terminates a pattern definition
bool
pushClipPath(string $clip_mask_id)
(PECL imagick 2.0.0)
Starts a clip path definition
bool
pushDefs()
(PECL imagick 2.0.0)
Indicates that following commands create named elements for early processing
bool
pushPattern(string $pattern_id, float $x, float $y, float $width, float $height)
(PECL imagick 2.0.0)
Indicates that subsequent commands up to a ImagickDraw::opPattern() command comprise the definition of a named pattern
bool
render()
(PECL imagick 2.0.0)
Renders all preceding drawing commands onto the image
bool
rotate(float $degrees)
(PECL imagick 2.0.0)
Applies the specified rotation to the current coordinate space
bool
scale(float $x, float $y)
(PECL imagick 2.0.0)
Adjusts the scaling factor
bool
setClipPath(string $clip_mask)
(PECL imagick 2.0.0)
Associates a named clipping path with the image
bool
setClipRule(int $fill_rule)
(PECL imagick 2.0.0)
Set the polygon fill rule to be used by the clipping path
bool
setClipUnits(int $clip_units)
(PECL imagick 2.0.0)
Sets the interpretation of clip path units
bool
setFillOpacity(float $fillOpacity)
(PECL imagick 2.0.0)
Sets the opacity to use when drawing using the fill color or fill texture
bool
setFillPatternURL(string $fill_url)
(PECL imagick 2.0.0)
Sets the URL to use as a fill pattern for filling objects
bool
setFillRule(int $fill_rule)
(PECL imagick 2.0.0)
Sets the fill rule to use while drawing polygons
bool
setGravity(int $gravity)
(PECL imagick 2.0.0)
Sets the text placement gravity
bool
setStrokePatternURL(string $stroke_url)
(PECL imagick 2.0.0)
Sets the pattern used for stroking object outlines
bool
setStrokeDashOffset(float $dash_offset)
(PECL imagick 2.0.0)
Specifies the offset into the dash pattern to start the dash
bool
setStrokeLineCap(int $linecap)
(PECL imagick 2.0.0)
Specifies the shape to be used at the end of open subpaths when they are stroked
bool
setStrokeLineJoin(int $linejoin)
(PECL imagick 2.0.0)
Specifies the shape to be used at the corners of paths when they are stroked
bool
setStrokeMiterLimit(int $miterlimit)
(PECL imagick 2.0.0)
Specifies the miter limit
bool
setStrokeOpacity(float $stroke_opacity)
(PECL imagick 2.0.0)
Specifies the opacity of stroked object outlines
bool
setVectorGraphics(string $xml)
(PECL imagick 2.0.0)
Sets the vector graphics
bool
pop()
(PECL imagick 2.0.0)
Destroys the current ImagickDraw in the stack, and returns to the previously pushed ImagickDraw
bool
push()
(PECL imagick 2.0.0)
Clones the current ImagickDraw and pushes it to the stack
bool
setStrokeDashArray(array $dashArray)
(PECL imagick 2.0.0)
Specifies the pattern of dashes and gaps used to stroke paths
void
setOpacity(float $opacity)
Sets the opacity to use when drawing using the fill or stroke color or texture. Fully opaque is 1.0.
float
getOpacity()
Returns the opacity used when drawing with the fill or stroke color or texture. Fully opaque is 1.0.
bool
setFontResolution(float $x, float $y)
Sets the image font resolution.
array
getFontResolution()
Gets the image X and Y resolution.
bool
getTextDirection()
Returns the direction that will be used when annotating with text.
bool
setTextDirection(int $direction)
Sets the font style to use when annotating with text. The AnyStyle enumeration acts as a wild-card "don't care" option.
ImagickPixel
getBorderColor()
Returns the border color used for drawing bordered objects.
bool
setBorderColor(ImagickPixel $color)
Sets the border color to be used for drawing bordered objects.
string|null
getDensity()
Obtains the vertical and horizontal resolution.
bool
setDensity(string $density_string)
Sets the vertical and horizontal resolution.
ImagickDraw
clone() $PECL imagick 2.0.0)
Makes an exact copy of the specified ImagickDraw object