-
-
Notifications
You must be signed in to change notification settings - Fork 451
Expand file tree
/
Copy pathDrawableTextDirection.cs
More file actions
31 lines (27 loc) · 961 Bytes
/
Copy pathDrawableTextDirection.cs
File metadata and controls
31 lines (27 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET.
// Licensed under the Apache License, Version 2.0.
namespace ImageMagick.Drawing;
/// <summary>
/// Specifies the direction to be used when annotating with text.
/// </summary>
public sealed class DrawableTextDirection : IDrawableTextDirection, IDrawingWand
{
/// <summary>
/// Initializes a new instance of the <see cref="DrawableTextDirection"/> class.
/// </summary>
/// <param name="direction">Direction to use.</param>
public DrawableTextDirection(TextDirection direction)
{
Direction = direction;
}
/// <summary>
/// Gets the direction to use.
/// </summary>
public TextDirection Direction { get; }
/// <summary>
/// Draws this instance with the drawing wand.
/// </summary>
/// <param name="wand">The want to draw on.</param>
void IDrawingWand.Draw(DrawingWand wand)
=> wand?.TextDirection(Direction);
}