Skip to content

Commit f2a2e35

Browse files
tocsoftantonfirsov
andauthored
Apply suggestions from code review
Co-authored-by: Anton Firszov <antonfir@gmail.com>
1 parent 434ccca commit f2a2e35

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/ImageSharp.Drawing/Processing/DrawingOptionsDefaultsExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace SixLabors.ImageSharp.Drawing.Processing
77
{
88
/// <summary>
9-
/// Adds extensions that allow the processing of images to the <see cref="Image{TPixel}"/> type.
9+
/// Adds extensions that help working with <see cref="DrawingOptions" />.
1010
/// </summary>
1111
public static class DrawingOptionsDefaultsExtensions
1212
{

src/ImageSharp.Drawing/Processing/DrawingTransformDefaultsExtensions.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ namespace SixLabors.ImageSharp.Drawing.Processing
1212
public static class DrawingTransformDefaultsExtensions
1313
{
1414
/// <summary>
15-
/// Sets the default shape processing options against the image processing context.
15+
/// Sets the 2D transformation matrix to be used during rasterization when drawing shapes or text.
1616
/// </summary>
1717
/// <param name="context">The image processing context to store default against.</param>
18-
/// <param name="matrix">The default matrix to use.</param>
18+
/// <param name="matrix">The matrix to use.</param>
1919
/// <returns>The passed in <paramref name="context"/> to allow chaining.</returns>
2020
public static IImageProcessingContext SetDrawingTransform(this IImageProcessingContext context, Matrix3x2 matrix)
2121
{
@@ -24,7 +24,7 @@ public static IImageProcessingContext SetDrawingTransform(this IImageProcessingC
2424
}
2525

2626
/// <summary>
27-
/// Sets the default shape processing options against the configuration.
27+
/// Sets the default 2D transformation matrix to be used during rasterization when drawing shapes or text.
2828
/// </summary>
2929
/// <param name="configuration">The configuration to store default against.</param>
3030
/// <param name="matrix">The default matrix to use.</param>
@@ -34,10 +34,10 @@ public static void SetDrawingTransform(this Configuration configuration, Matrix3
3434
}
3535

3636
/// <summary>
37-
/// Gets the default matrix to apply during raterization against the image processing context.
37+
/// Gets the default 2D transformation matrix to be used during rasterization when drawing shapes or text.
3838
/// </summary>
3939
/// <param name="context">The image processing context to retrieve defaults from.</param>
40-
/// <returns>The globaly configured default options.</returns>
40+
/// <returns>The matrix.</returns>
4141
public static Matrix3x2 GetDrawingTransform(this IImageProcessingContext context)
4242
{
4343
if (context.Properties.TryGetValue(typeof(DrawingTransformDefaultsExtensions), out var options) && options is Matrix3x2 go)
@@ -53,10 +53,10 @@ public static Matrix3x2 GetDrawingTransform(this IImageProcessingContext context
5353
}
5454

5555
/// <summary>
56-
/// Gets the default shape processing options against the image processing context.
56+
/// Gets the default 2D transformation matrix to be used during rasterization when drawing shapes or text.
5757
/// </summary>
5858
/// <param name="configuration">The configuration to retrieve defaults from.</param>
59-
/// <returns>The globaly configured default options.</returns>
59+
/// <returns>The globaly configured default matrix.</returns>
6060
public static Matrix3x2 GetDrawingTransform(this Configuration configuration)
6161
{
6262
if (configuration.Properties.TryGetValue(typeof(DrawingTransformDefaultsExtensions), out var options) && options is Matrix3x2 go)

0 commit comments

Comments
 (0)