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
scaleXdoubleThe X coordinate scaling element.
scaleYdoubleThe Y coordinate scaling element.
shearXdoubleThe X coordinate shearing element.
shearYdoubleThe Y coordinate shearing element.
translateXdoubleThe X coordinate of the translation element.
translateYdoubleThe 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
xdoubleThe X coordinate.
ydoubleThe Y coordinate.
paintMethodPaintMethodThe 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
startXdoubleThe starting X coordinate of the bounding rectangle.
startYdoubleThe starting Y coordinate of the bounding rectangle.
endXdoubleThe ending X coordinate of the bounding rectangle.
endYdoubleThe ending Y coordinate of the bounding rectangle.
startDegreesdoubleThe starting degrees of rotation.
endDegreesdoubleThe 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
coordinatesPointD[]
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
coordinatesIEnumerable<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
colorIMagickColor<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
originXdoubleThe origin X coordinate.
originYdoubleThe origin X coordinate.
perimeterXdoubleThe perimeter X coordinate.
perimeterYdoubleThe 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
clipPathstringThe 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
fillRuleFillRuleThe 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
unitsClipPathUnitThe 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
xdoubleThe X coordinate.
ydoubleThe Y coordinate.
paintMethodPaintMethodThe 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
offsetIMagickGeometryThe offset from origin.
composeCompositeOperatorThe algorithm to use.
imageIMagickImage<ushort>The image to draw.
Returns
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
offsetIMagickGeometryThe offset from origin.
imageIMagickImage<ushort>The image to draw.
Returns
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
xdoubleThe X coordinate.
ydoubleThe Y coordinate.
composeCompositeOperatorThe algorithm to use.
imageIMagickImage<ushort>The image to draw.
Returns
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
Returns
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
xdoubleThe X coordinate.
ydoubleThe Y coordinate.
widthdoubleThe width to scale the image to.
heightdoubleThe height to scale the image to.
composeCompositeOperatorThe composition operator.
imageIMagickImage<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
densityPointDThe 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
densitydoubleThe vertical and horizontal resolution.
Returns
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
imageIMagickImage<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
originXdoubleThe origin X coordinate.
originYdoubleThe origin X coordinate.
radiusXdoubleThe X radius.
radiusYdoubleThe Y radius.
startDegreesdoubleThe starting degrees of rotation.
endDegreesdoubleThe 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
colorIMagickColor<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
opacityPercentageThe 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
urlstringThe 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
fillRuleFillRuleThe 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
familystringThe font family or the full path to the font file.
Returns
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
familystringThe font family or the full path to the font file.
styleFontStyleTypeThe style of the font.
weightFontWeightThe weight of the font.
stretchFontStretchThe 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
pointSizedoubleThe 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
textstringThe 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
textstringThe text to get the font metrics for.
ignoreNewlinesboolSpecifies 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
gravityGravityThe 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
startXdoubleThe starting X coordinate.
startYdoubleThe starting Y coordinate.
endXdoubleThe ending X coordinate.
endYdoubleThe 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
pathsIPath[]
Returns
- IDrawables<ushort>
The ImageMagick.IDrawables<> instance.
Path(IEnumerable<IPath>)
Draws a set of paths.
public IDrawables<ushort> Path(IEnumerable<IPath> paths)
Parameters
pathsIEnumerable<IPath>
Returns
- IDrawables<ushort>
Paths()
Creates a new Paths() instance.
public IPaths<ushort> Paths()
Returns
Point(double, double)
Draws a point using the current fill color.
public IDrawables<ushort> Point(double x, double y)
Parameters
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
coordinatesPointD[]
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
coordinatesIEnumerable<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
coordinatesPointD[]
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
coordinatesIEnumerable<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
clipPathstringThe 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
idstringThe ID of the pattern.
xdoubleThe X coordinate.
ydoubleThe Y coordinate.
widthdoubleThe width.
heightdoubleThe 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
upperLeftXdoubleThe upper left X coordinate.
upperLeftYdoubleThe upper left Y coordinate.
lowerRightXdoubleThe upper left X coordinate.
lowerRightYdoubleThe 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
angledoubleThe 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
upperLeftXdoubleThe upper left X coordinate.
upperLeftYdoubleThe upper left Y coordinate.
lowerRightXdoubleThe lower right X coordinate.
lowerRightYdoubleThe lower right Y coordinate.
cornerWidthdoubleThe corner width.
cornerHeightdoubleThe 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
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
angledoubleThe 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
angledoubleThe 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
colorIMagickColor<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
dashIEnumerable<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
dashdouble[]
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
offsetdoubleThe 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
lineCapLineCapThe 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
lineJoinLineJoinThe 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
miterlimitintThe 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
opacityPercentageThe 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
urlstringThe 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
widthdoubleThe 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
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
alignmentTextAlignmentText 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
decorationTextDecorationThe 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
directionTextDirectionThe direction to use.
Returns
- IDrawables<ushort>
The ImageMagick.IDrawables<> instance.
TextEncoding(Encoding)
Encapsulation of the DrawableTextEncoding object.
public IDrawables<ushort> TextEncoding(Encoding encoding)
Parameters
encodingEncodingThe 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
spacingdoubleThe 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
spacingdoubleThe 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
kerningdoubleThe 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
colorIMagickColor<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
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
upperLeftXdoubleThe upper left X coordinate.
upperLeftYdoubleThe upper left Y coordinate.
lowerRightXdoubleThe upper left X coordinate.
lowerRightYdoubleThe upper left Y coordinate.
Returns
- IDrawables<ushort>
The ImageMagick.IDrawables<> instance.