Table of Contents

Class Drawables

Namespace
ImageMagick
Assembly
Magick.NET-Q16-AnyCPU.dll

Class that can be used to chain draw actions.

public sealed class Drawables : IDrawables<ushort>, IEnumerable<IDrawable>, IEnumerable
Inheritance
Drawables
Implements
IDrawables<ushort>
IEnumerable<IDrawable>
Inherited Members

Constructors

Drawables()

Initializes a new instance of the Drawables class.

public Drawables()

Methods

Affine(double, double, double, double, double, double)

Adjusts the current affine transformation matrix with the specified affine transformation matrix. Note that the current affine transform is adjusted rather than replaced.

public IDrawables<ushort> Affine(double scaleX, double scaleY, double shearX, double shearY, double translateX, double translateY)

Parameters

scaleX double

The X coordinate scaling element.

scaleY double

The Y coordinate scaling element.

shearX double

The X coordinate shearing element.

shearY double

The Y coordinate shearing element.

translateX double

The X coordinate of the translation element.

translateY double

The Y coordinate of the translation element.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

Alpha(double, double, PaintMethod)

Paints on the image's alpha channel in order to set effected pixels to transparent.

public IDrawables<ushort> Alpha(double x, double y, PaintMethod paintMethod)

Parameters

x double

The X coordinate.

y double

The Y coordinate.

paintMethod PaintMethod

The paint method to use.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

Arc(double, double, double, double, double, double)

Draws an arc falling within a specified bounding rectangle on the image.

public IDrawables<ushort> Arc(double startX, double startY, double endX, double endY, double startDegrees, double endDegrees)

Parameters

startX double

The starting X coordinate of the bounding rectangle.

startY double

The starting Y coordinate of the bounding rectangle.

endX double

The ending X coordinate of the bounding rectangle.

endY double

The ending Y coordinate of the bounding rectangle.

startDegrees double

The starting degrees of rotation.

endDegrees double

The ending degrees of rotation.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

Bezier(params PointD[])

Draws a bezier curve through a set of points on the image.

public IDrawables<ushort> Bezier(params PointD[] coordinates)

Parameters

coordinates PointD[]

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

Bezier(IEnumerable<PointD>)

Draws a bezier curve through a set of points on the image.

public IDrawables<ushort> Bezier(IEnumerable<PointD> coordinates)

Parameters

coordinates IEnumerable<PointD>

Returns

IDrawables<ushort>

BorderColor(IMagickColor<ushort>)

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

public IDrawables<ushort> BorderColor(IMagickColor<ushort> color)

Parameters

color IMagickColor<ushort>

The color to use.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

Circle(double, double, double, double)

Draws a circle on the image.

public IDrawables<ushort> Circle(double originX, double originY, double perimeterX, double perimeterY)

Parameters

originX double

The origin X coordinate.

originY double

The origin X coordinate.

perimeterX double

The perimeter X coordinate.

perimeterY double

The perimeter X coordinate.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

ClipPath(string)

Associates a named clipping path with the image. Only the areas drawn on by the clipping path will be modified as ssize_t as it remains in effect.

public IDrawables<ushort> ClipPath(string clipPath)

Parameters

clipPath string

The ID of the clip path.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

ClipRule(FillRule)

Sets the polygon fill rule to be used by the clipping path.

public IDrawables<ushort> ClipRule(FillRule fillRule)

Parameters

fillRule FillRule

The rule to use when filling drawn objects.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

ClipUnits(ClipPathUnit)

Sets the interpretation of clip path units.

public IDrawables<ushort> ClipUnits(ClipPathUnit units)

Parameters

units ClipPathUnit

The clip path units.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

Color(double, double, PaintMethod)

Draws color on image using the current fill color, starting at specified position, and using specified paint method.

public IDrawables<ushort> Color(double x, double y, PaintMethod paintMethod)

Parameters

x double

The X coordinate.

y double

The Y coordinate.

paintMethod PaintMethod

The PaintMethod to use.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

Composite(IMagickGeometry, CompositeOperator, IMagickImage<ushort>)

Applies the DrawableComposite operation to the Drawables.

[Obsolete("This method will be removed in the next major release, use the overload with x, y, width, height, compose instead.")]
public IDrawables<ushort> Composite(IMagickGeometry offset, CompositeOperator compose, IMagickImage<ushort> image)

Parameters

offset IMagickGeometry

The offset from origin.

compose CompositeOperator

The algorithm to use.

image IMagickImage<ushort>

The image to draw.

Returns

IDrawables<ushort>

The Drawables instance.

Composite(IMagickGeometry, IMagickImage<ushort>)

Applies the DrawableComposite operation to the Drawables.

[Obsolete("This method will be removed in the next major release, use the overload with x, y, width, height, compose instead.")]
public IDrawables<ushort> Composite(IMagickGeometry offset, IMagickImage<ushort> image)

Parameters

offset IMagickGeometry

The offset from origin.

image IMagickImage<ushort>

The image to draw.

Returns

IDrawables<ushort>

The Drawables instance.

Composite(double, double, CompositeOperator, IMagickImage<ushort>)

Applies the DrawableComposite operation to the Drawables.

public IDrawables<ushort> Composite(double x, double y, CompositeOperator compose, IMagickImage<ushort> image)

Parameters

x double

The X coordinate.

y double

The Y coordinate.

compose CompositeOperator

The algorithm to use.

image IMagickImage<ushort>

The image to draw.

Returns

IDrawables<ushort>

The Drawables instance.

Composite(double, double, IMagickImage<ushort>)

Applies the DrawableComposite operation to the Drawables.

[Obsolete("This method will be removed in the next major release, use the overload with x, y, compose instead.")]
public IDrawables<ushort> Composite(double x, double y, IMagickImage<ushort> image)

Parameters

x double

The X coordinate.

y double

The Y coordinate.

image IMagickImage<ushort>

The image to draw.

Returns

IDrawables<ushort>

The Drawables instance.

Composite(double, double, double, double, CompositeOperator, IMagickImage<ushort>)

Encapsulation of the DrawableCompositeImage object.

public IDrawables<ushort> Composite(double x, double y, double width, double height, CompositeOperator compose, IMagickImage<ushort> image)

Parameters

x double

The X coordinate.

y double

The Y coordinate.

width double

The width to scale the image to.

height double

The height to scale the image to.

compose CompositeOperator

The composition operator.

image IMagickImage<ushort>

Gets the composite image.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

Density(PointD)

Encapsulation of the DrawableDensity object.

public IDrawables<ushort> Density(PointD density)

Parameters

density PointD

The vertical and horizontal resolution.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

Density(double)

Applies the DrawableDensity operation to the Drawables.

public IDrawables<ushort> Density(double density)

Parameters

density double

The vertical and horizontal resolution.

Returns

IDrawables<ushort>

The Drawables instance.

DisableStrokeAntialias()

Disables Gets or sets a value indicating whether stroke antialiasing.

public IDrawables<ushort> DisableStrokeAntialias()

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

DisableTextAntialias()

Disables Gets or sets a value indicating whether text antialiasing.

public IDrawables<ushort> DisableTextAntialias()

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

Draw(IMagickImage<ushort>)

Draw on the specified image.

public IDrawables<ushort> Draw(IMagickImage<ushort> image)

Parameters

image IMagickImage<ushort>

The image to draw on.

Returns

IDrawables<ushort>

The current instance.

Ellipse(double, double, double, double, double, double)

Draws an ellipse on the image.

public IDrawables<ushort> Ellipse(double originX, double originY, double radiusX, double radiusY, double startDegrees, double endDegrees)

Parameters

originX double

The origin X coordinate.

originY double

The origin X coordinate.

radiusX double

The X radius.

radiusY double

The Y radius.

startDegrees double

The starting degrees of rotation.

endDegrees double

The ending degrees of rotation.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

EnableStrokeAntialias()

Enables Gets or sets a value indicating whether stroke antialiasing.

public IDrawables<ushort> EnableStrokeAntialias()

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

EnableTextAntialias()

Enables Gets or sets a value indicating whether text antialiasing.

public IDrawables<ushort> EnableTextAntialias()

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

FillColor(IMagickColor<ushort>)

Sets the fill color to be used for drawing filled objects.

public IDrawables<ushort> FillColor(IMagickColor<ushort> color)

Parameters

color IMagickColor<ushort>

The color to use.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

FillOpacity(Percentage)

Sets the alpha to use when drawing using the fill color or fill texture.

public IDrawables<ushort> FillOpacity(Percentage opacity)

Parameters

opacity Percentage

The alpha.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

FillPatternUrl(string)

Sets the URL to use as a fill pattern for filling objects. Only local URLs("#identifier") are supported at this time. These local URLs are normally created by defining a named fill pattern with /.

public IDrawables<ushort> FillPatternUrl(string url)

Parameters

url string

The url specifying pattern ID (e.g. "#pattern_id").

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

FillRule(FillRule)

Sets the fill rule to use while drawing polygons.

public IDrawables<ushort> FillRule(FillRule fillRule)

Parameters

fillRule FillRule

The rule to use when filling drawn objects.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

Font(string)

Applies the DrawableFont operation to the Drawables.

public IDrawables<ushort> Font(string family)

Parameters

family string

The font family or the full path to the font file.

Returns

IDrawables<ushort>

The Drawables instance.

Font(string, FontStyleType, FontWeight, FontStretch)

Sets the font family, style, weight and stretch to use when annotating with text.

public IDrawables<ushort> Font(string family, FontStyleType style, FontWeight weight, FontStretch stretch)

Parameters

family string

The font family or the full path to the font file.

style FontStyleType

The style of the font.

weight FontWeight

The weight of the font.

stretch FontStretch

The font stretching.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

FontPointSize(double)

Sets the font pointsize to use when annotating with text.

public IDrawables<ushort> FontPointSize(double pointSize)

Parameters

pointSize double

The point size.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

FontTypeMetrics(string)

Obtain font metrics for text string given current font, pointsize, and density settings.

public ITypeMetric? FontTypeMetrics(string text)

Parameters

text string

The text to get the font metrics for.

Returns

ITypeMetric

The font metrics for text.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

FontTypeMetrics(string, bool)

Obtain font metrics for text string given current font, pointsize, and density settings.

public ITypeMetric? FontTypeMetrics(string text, bool ignoreNewlines)

Parameters

text string

The text to get the font metrics for.

ignoreNewlines bool

Specifies if newlines should be ignored.

Returns

ITypeMetric

The font metrics for text.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<IDrawable> GetEnumerator()

Returns

IEnumerator<IDrawable>

An enumerator.

Gravity(Gravity)

Sets the gravity to use when drawing.

public IDrawables<ushort> Gravity(Gravity gravity)

Parameters

gravity Gravity

The gravity.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

Line(double, double, double, double)

Draws a line on the image using the current stroke color, stroke alpha, and stroke width.

public IDrawables<ushort> Line(double startX, double startY, double endX, double endY)

Parameters

startX double

The starting X coordinate.

startY double

The starting Y coordinate.

endX double

The ending X coordinate.

endY double

The ending Y coordinate.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

Path(params IPath[])

Draws a set of paths.

public IDrawables<ushort> Path(params IPath[] paths)

Parameters

paths IPath[]

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

Path(IEnumerable<IPath>)

Draws a set of paths.

public IDrawables<ushort> Path(IEnumerable<IPath> paths)

Parameters

paths IEnumerable<IPath>

Returns

IDrawables<ushort>

Paths()

Creates a new Paths() instance.

public IPaths<ushort> Paths()

Returns

IPaths<ushort>

A new Paths() instance.

Point(double, double)

Draws a point using the current fill color.

public IDrawables<ushort> Point(double x, double y)

Parameters

x double

The X coordinate.

y double

The Y coordinate.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

Polygon(params PointD[])

Draws a polygon using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.

public IDrawables<ushort> Polygon(params PointD[] coordinates)

Parameters

coordinates PointD[]

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

Polygon(IEnumerable<PointD>)

Draws a polygon using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.

public IDrawables<ushort> Polygon(IEnumerable<PointD> coordinates)

Parameters

coordinates IEnumerable<PointD>

Returns

IDrawables<ushort>

Polyline(params PointD[])

Draws a polyline using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.

public IDrawables<ushort> Polyline(params PointD[] coordinates)

Parameters

coordinates PointD[]

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

Polyline(IEnumerable<PointD>)

Draws a polyline using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.

public IDrawables<ushort> Polyline(IEnumerable<PointD> coordinates)

Parameters

coordinates IEnumerable<PointD>

Returns

IDrawables<ushort>

PopClipPath()

Terminates a clip path definition.

public IDrawables<ushort> PopClipPath()

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

PopGraphicContext()

destroys the current drawing wand and returns to the previously pushed drawing wand. Multiple drawing wands may exist. It is an error to attempt to pop more drawing wands than have been pushed, and it is proper form to pop all drawing wands which have been pushed.

public IDrawables<ushort> PopGraphicContext()

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

PopPattern()

Terminates a pattern definition.

public IDrawables<ushort> PopPattern()

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

PushClipPath(string)

Starts a clip path definition which is comprized of any number of drawing commands and terminated by a DrawablePopClipPath.

public IDrawables<ushort> PushClipPath(string clipPath)

Parameters

clipPath string

The ID of the clip path.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

PushGraphicContext()

Clones the current drawing wand to create a new drawing wand. The original drawing wand(s) may be returned to by invoking DrawablePopGraphicContext. The drawing wands are stored on a drawing wand stack. For every Pop there must have already been an equivalent Push.

public IDrawables<ushort> PushGraphicContext()

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

PushPattern(string, double, double, double, double)

indicates that subsequent commands up to a DrawablePopPattern command comprise the definition of a named pattern. The pattern space is assigned top left corner coordinates, a width and height, and becomes its own drawing space. Anything which can be drawn may be used in a pattern definition. Named patterns may be used as stroke or brush definitions.

public IDrawables<ushort> PushPattern(string id, double x, double y, double width, double height)

Parameters

id string

The ID of the pattern.

x double

The X coordinate.

y double

The Y coordinate.

width double

The width.

height double

The height.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

Rectangle(double, double, double, double)

Draws a rectangle given two coordinates and using the current stroke, stroke width, and fill settings.

public IDrawables<ushort> Rectangle(double upperLeftX, double upperLeftY, double lowerRightX, double lowerRightY)

Parameters

upperLeftX double

The upper left X coordinate.

upperLeftY double

The upper left Y coordinate.

lowerRightX double

The upper left X coordinate.

lowerRightY double

The upper left Y coordinate.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

Rotation(double)

Applies the specified rotation to the current coordinate space.

public IDrawables<ushort> Rotation(double angle)

Parameters

angle double

The angle.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

RoundRectangle(double, double, double, double, double, double)

Draws a rounted rectangle given two coordinates, x & y corner radiuses and using the current stroke, stroke width, and fill settings.

public IDrawables<ushort> RoundRectangle(double upperLeftX, double upperLeftY, double lowerRightX, double lowerRightY, double cornerWidth, double cornerHeight)

Parameters

upperLeftX double

The upper left X coordinate.

upperLeftY double

The upper left Y coordinate.

lowerRightX double

The lower right X coordinate.

lowerRightY double

The lower right Y coordinate.

cornerWidth double

The corner width.

cornerHeight double

The corner height.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

Scaling(double, double)

Adjusts the scaling factor to apply in the horizontal and vertical directions to the current coordinate space.

public IDrawables<ushort> Scaling(double x, double y)

Parameters

x double

The X coordinate.

y double

The Y coordinate.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

SkewX(double)

Skews the current coordinate system in the horizontal direction.

public IDrawables<ushort> SkewX(double angle)

Parameters

angle double

The angle.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

SkewY(double)

Skews the current coordinate system in the vertical direction.

public IDrawables<ushort> SkewY(double angle)

Parameters

angle double

The angle.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

StrokeColor(IMagickColor<ushort>)

Sets the color used for stroking object outlines.

public IDrawables<ushort> StrokeColor(IMagickColor<ushort> color)

Parameters

color IMagickColor<ushort>

The color to use.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

StrokeDashArray(IEnumerable<double>)

Specifies the pattern of dashes and gaps used to stroke paths. The stroke dash array represents an array of numbers that specify the lengths of alternating dashes and gaps in pixels. If an odd number of values is provided, then the list of values is repeated to yield an even number of values. To remove an existing dash array, pass a null dasharray. A typical stroke dash array might contain the members 5 3 2.

public IDrawables<ushort> StrokeDashArray(IEnumerable<double> dash)

Parameters

dash IEnumerable<double>

Returns

IDrawables<ushort>

StrokeDashArray(params double[])

Specifies the pattern of dashes and gaps used to stroke paths. The stroke dash array represents an array of numbers that specify the lengths of alternating dashes and gaps in pixels. If an odd number of values is provided, then the list of values is repeated to yield an even number of values. To remove an existing dash array, pass a null dasharray. A typical stroke dash array might contain the members 5 3 2.

public IDrawables<ushort> StrokeDashArray(params double[] dash)

Parameters

dash double[]

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

StrokeDashOffset(double)

Specifies the offset into the dash pattern to start the dash.

public IDrawables<ushort> StrokeDashOffset(double offset)

Parameters

offset double

The dash offset.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

StrokeLineCap(LineCap)

Specifies the shape to be used at the end of open subpaths when they are stroked.

public IDrawables<ushort> StrokeLineCap(LineCap lineCap)

Parameters

lineCap LineCap

The line cap.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

StrokeLineJoin(LineJoin)

Specifies the shape to be used at the corners of paths (or other vector shapes) when they are stroked.

public IDrawables<ushort> StrokeLineJoin(LineJoin lineJoin)

Parameters

lineJoin LineJoin

The line join.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

StrokeMiterLimit(int)

Specifies the miter limit. When two line segments meet at a sharp angle and miter joins have been specified for 'DrawableStrokeLineJoin', it is possible for the miter to extend far beyond the thickness of the line stroking the path. The 'DrawableStrokeMiterLimit' imposes a limit on the ratio of the miter length to the 'DrawableStrokeLineWidth'.

public IDrawables<ushort> StrokeMiterLimit(int miterlimit)

Parameters

miterlimit int

The miter limit.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

StrokeOpacity(Percentage)

Specifies the alpha of stroked object outlines.

public IDrawables<ushort> StrokeOpacity(Percentage opacity)

Parameters

opacity Percentage

The opacity.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

StrokePatternUrl(string)

Sets the pattern used for stroking object outlines. Only local URLs("#identifier") are supported at this time. These local URLs are normally created by defining a named stroke pattern with DrawablePushPattern/DrawablePopPattern.

public IDrawables<ushort> StrokePatternUrl(string url)

Parameters

url string

The url specifying pattern ID (e.g. "#pattern_id").

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

StrokeWidth(double)

Sets the width of the stroke used to draw object outlines.

public IDrawables<ushort> StrokeWidth(double width)

Parameters

width double

The width.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

Text(double, double, string)

Draws text on the image.

public IDrawables<ushort> Text(double x, double y, string value)

Parameters

x double

The X coordinate.

y double

The Y coordinate.

value string

The text to draw.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

TextAlignment(TextAlignment)

Specifies a text alignment to be applied when annotating with text.

public IDrawables<ushort> TextAlignment(TextAlignment alignment)

Parameters

alignment TextAlignment

Text alignment.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

TextDecoration(TextDecoration)

Specifies a decoration to be applied when annotating with text.

public IDrawables<ushort> TextDecoration(TextDecoration decoration)

Parameters

decoration TextDecoration

The text decoration.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

TextDirection(TextDirection)

Specifies the direction to be used when annotating with text.

public IDrawables<ushort> TextDirection(TextDirection direction)

Parameters

direction TextDirection

The direction to use.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

TextEncoding(Encoding)

Encapsulation of the DrawableTextEncoding object.

public IDrawables<ushort> TextEncoding(Encoding encoding)

Parameters

encoding Encoding

The encoding of the text.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

TextInterlineSpacing(double)

Sets the spacing between line in text.

public IDrawables<ushort> TextInterlineSpacing(double spacing)

Parameters

spacing double

The spacing to use.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

TextInterwordSpacing(double)

Sets the spacing between words in text.

public IDrawables<ushort> TextInterwordSpacing(double spacing)

Parameters

spacing double

The spacing to use.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

TextKerning(double)

Sets the spacing between characters in text.

public IDrawables<ushort> TextKerning(double kerning)

Parameters

kerning double

The text kerning to use.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

TextUnderColor(IMagickColor<ushort>)

Specifies the color of a background rectangle to place under text annotations.

public IDrawables<ushort> TextUnderColor(IMagickColor<ushort> color)

Parameters

color IMagickColor<ushort>

The color to use.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

Translation(double, double)

Applies a translation to the current coordinate system which moves the coordinate system origin to the specified coordinate.

public IDrawables<ushort> Translation(double x, double y)

Parameters

x double

The X coordinate.

y double

The Y coordinate.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.

Viewbox(double, double, double, double)

Sets the overall canvas size to be recorded with the drawing vector data. Usually this will be specified using the same size as the canvas image. When the vector data is saved to SVG or MVG formats, the viewbox is use to specify the size of the canvas image that a viewer will render the vector data on.

public IDrawables<ushort> Viewbox(double upperLeftX, double upperLeftY, double lowerRightX, double lowerRightY)

Parameters

upperLeftX double

The upper left X coordinate.

upperLeftY double

The upper left Y coordinate.

lowerRightX double

The upper left X coordinate.

lowerRightY double

The upper left Y coordinate.

Returns

IDrawables<ushort>

The ImageMagick.IDrawables<> instance.