Skip to content

Commit

Permalink
Make it more clear which dpi will be used when calculating page sizes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Feb 28, 2024
1 parent 708c592 commit b85bd76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Magick.NET.Core/Factories/IMagickGeometryFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ public interface IMagickGeometryFactory
/// Initializes a new <see cref="IMagickGeometry"/> instance using the specified page size.
/// </summary>
/// <param name="pageSize">The page size.</param>
/// <returns>A <see cref="IMagickGeometry"/> instance that represents the specified page size.</returns>
/// <returns>A <see cref="IMagickGeometry"/> instance that represents the specified page size at 72 dpi.</returns>
IMagickGeometry CreateFromPageSize(string pageSize);
}
2 changes: 1 addition & 1 deletion src/Magick.NET/Factories/MagickGeometryFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public IMagickGeometry Create(string value)
/// Initializes a new <see cref="IMagickGeometry"/> instance using the specified page size.
/// </summary>
/// <param name="pageSize">The page size.</param>
/// <returns>A <see cref="IMagickGeometry"/> instance that represents the specified page size.</returns>
/// <returns>A <see cref="IMagickGeometry"/> instance that represents the specified page size at 72 dpi.</returns>
public IMagickGeometry CreateFromPageSize(string pageSize)
=> MagickGeometry.FromPageSize(pageSize);
}
2 changes: 1 addition & 1 deletion src/Magick.NET/Types/MagickGeometry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public static explicit operator MagickGeometry(string value)
/// Initializes a new <see cref="IMagickGeometry"/> instance using the specified page size.
/// </summary>
/// <param name="pageSize">The page size.</param>
/// <returns>A <see cref="IMagickGeometry"/> instance that represents the specified page size.</returns>
/// <returns>A <see cref="IMagickGeometry"/> instance that represents the specified page size at 72 dpi.</returns>
public static IMagickGeometry FromPageSize(string pageSize)
{
Throw.IfNullOrEmpty(nameof(pageSize), pageSize);
Expand Down

0 comments on commit b85bd76

Please sign in to comment.