diff --git a/src/ImageSharp.Drawing/Processing/Text/DrawTextExtensions.Path.cs b/src/ImageSharp.Drawing/Processing/Text/DrawTextExtensions.Path.cs index e0c133d50..827d6b95f 100644 --- a/src/ImageSharp.Drawing/Processing/Text/DrawTextExtensions.Path.cs +++ b/src/ImageSharp.Drawing/Processing/Text/DrawTextExtensions.Path.cs @@ -28,9 +28,14 @@ namespace SixLabors.ImageSharp.Processing.Text /// /// The . /// - public static IImageProcessingContext DrawText(this IImageProcessingContext source, string text, Font font, TPixel color, IPath path) - where TPixel : struct, IPixel - => source.DrawText(TextGraphicsOptions.Default, text, font, color, path); + public static IImageProcessingContext DrawText( + this IImageProcessingContext source, + string text, + Font font, + TPixel color, + IPath path) + where TPixel : struct, IPixel => + source.DrawText(TextGraphicsOptions.Default, text, font, color, path); /// /// Draws the text onto the the image filled via the brush. @@ -45,9 +50,15 @@ namespace SixLabors.ImageSharp.Processing.Text /// /// The . /// - public static IImageProcessingContext DrawText(this IImageProcessingContext source, TextGraphicsOptions options, string text, Font font, TPixel color, IPath path) - where TPixel : struct, IPixel - => source.DrawText(options, text, font, Brushes.Solid(color), null, path); + public static IImageProcessingContext DrawText( + this IImageProcessingContext source, + TextGraphicsOptions options, + string text, + Font font, + TPixel color, + IPath path) + where TPixel : struct, IPixel => + source.DrawText(options, text, font, Brushes.Solid(color), null, path); /// /// Draws the text onto the the image filled via the brush. @@ -61,9 +72,14 @@ namespace SixLabors.ImageSharp.Processing.Text /// /// The . /// - public static IImageProcessingContext DrawText(this IImageProcessingContext source, string text, Font font, IBrush brush, IPath path) - where TPixel : struct, IPixel - => source.DrawText(TextGraphicsOptions.Default, text, font, brush, path); + public static IImageProcessingContext DrawText( + this IImageProcessingContext source, + string text, + Font font, + IBrush brush, + IPath path) + where TPixel : struct, IPixel => + source.DrawText(TextGraphicsOptions.Default, text, font, brush, path); /// /// Draws the text onto the the image filled via the brush. @@ -78,9 +94,15 @@ namespace SixLabors.ImageSharp.Processing.Text /// /// The . /// - public static IImageProcessingContext DrawText(this IImageProcessingContext source, TextGraphicsOptions options, string text, Font font, IBrush brush, IPath path) - where TPixel : struct, IPixel - => source.DrawText(options, text, font, brush, null, path); + public static IImageProcessingContext DrawText( + this IImageProcessingContext source, + TextGraphicsOptions options, + string text, + Font font, + IBrush brush, + IPath path) + where TPixel : struct, IPixel => + source.DrawText(options, text, font, brush, null, path); /// /// Draws the text onto the the image outlined via the pen. @@ -94,9 +116,14 @@ namespace SixLabors.ImageSharp.Processing.Text /// /// The . /// - public static IImageProcessingContext DrawText(this IImageProcessingContext source, string text, Font font, IPen pen, IPath path) - where TPixel : struct, IPixel - => source.DrawText(TextGraphicsOptions.Default, text, font, pen, path); + public static IImageProcessingContext DrawText( + this IImageProcessingContext source, + string text, + Font font, + IPen pen, + IPath path) + where TPixel : struct, IPixel => + source.DrawText(TextGraphicsOptions.Default, text, font, pen, path); /// /// Draws the text onto the the image outlined via the pen. @@ -111,9 +138,15 @@ namespace SixLabors.ImageSharp.Processing.Text /// /// The . /// - public static IImageProcessingContext DrawText(this IImageProcessingContext source, TextGraphicsOptions options, string text, Font font, IPen pen, IPath path) - where TPixel : struct, IPixel - => source.DrawText(options, text, font, null, pen, path); + public static IImageProcessingContext DrawText( + this IImageProcessingContext source, + TextGraphicsOptions options, + string text, + Font font, + IPen pen, + IPath path) + where TPixel : struct, IPixel => + source.DrawText(options, text, font, null, pen, path); /// /// Draws the text onto the the image filled via the brush then outlined via the pen. @@ -128,9 +161,15 @@ namespace SixLabors.ImageSharp.Processing.Text /// /// The . /// - public static IImageProcessingContext DrawText(this IImageProcessingContext source, string text, Font font, IBrush brush, IPen pen, IPath path) - where TPixel : struct, IPixel - => source.DrawText(TextGraphicsOptions.Default, text, font, brush, pen, path); + public static IImageProcessingContext DrawText( + this IImageProcessingContext source, + string text, + Font font, + IBrush brush, + IPen pen, + IPath path) + where TPixel : struct, IPixel => + source.DrawText(TextGraphicsOptions.Default, text, font, brush, pen, path); /// /// Draws the text onto the the image filled via the brush then outlined via the pen. @@ -146,8 +185,15 @@ namespace SixLabors.ImageSharp.Processing.Text /// /// The . /// - public static IImageProcessingContext DrawText(this IImageProcessingContext source, TextGraphicsOptions options, string text, Font font, IBrush brush, IPen pen, IPath path) - where TPixel : struct, IPixel - => source.ApplyProcessor(new DrawTextOnPathProcessor(options, text, font, brush, pen, path)); + public static IImageProcessingContext DrawText( + this IImageProcessingContext source, + TextGraphicsOptions options, + string text, + Font font, + IBrush brush, + IPen pen, + IPath path) + where TPixel : struct, IPixel => + source.ApplyProcessor(new DrawTextOnPathProcessor(options, text, font, brush, pen, path)); } } \ No newline at end of file