Browse Source

Add exception docs.

pull/1574/head
James Jackson-South 6 years ago
parent
commit
8db87e4991
  1. 3
      src/ImageSharp/Processing/AffineTransformBuilder.cs
  2. 3
      src/ImageSharp/Processing/ProjectiveTransformBuilder.cs

3
src/ImageSharp/Processing/AffineTransformBuilder.cs

@ -268,6 +268,9 @@ namespace SixLabors.ImageSharp.Processing
/// Returns the combined matrix for a given source rectangle.
/// </summary>
/// <param name="sourceRectangle">The rectangle in the source image.</param>
/// <exception cref="DegenerateTransformException">
/// The resultant matrix contains one or more values equivalent to <see cref="float.NaN"/>.
/// </exception>
/// <returns>The <see cref="Matrix3x2"/>.</returns>
public Matrix3x2 BuildMatrix(Rectangle sourceRectangle)
{

3
src/ImageSharp/Processing/ProjectiveTransformBuilder.cs

@ -284,6 +284,9 @@ namespace SixLabors.ImageSharp.Processing
/// Returns the combined matrix for a given source rectangle.
/// </summary>
/// <param name="sourceRectangle">The rectangle in the source image.</param>
/// <exception cref="DegenerateTransformException">
/// The resultant matrix contains one or more values equivalent to <see cref="float.NaN"/>.
/// </exception>
/// <returns>The <see cref="Matrix4x4"/>.</returns>
public Matrix4x4 BuildMatrix(Rectangle sourceRectangle)
{

Loading…
Cancel
Save