Browse Source

document ArgumentOutOfRangeException

af/octree-no-pixelmap
Anton Firszov 6 years ago
parent
commit
afe0c82bf6
  1. 1
      src/ImageSharp/ImageFrame{TPixel}.cs
  2. 1
      src/ImageSharp/Image{TPixel}.cs

1
src/ImageSharp/ImageFrame{TPixel}.cs

@ -148,6 +148,7 @@ namespace SixLabors.ImageSharp
/// <param name="x">The x-coordinate of the pixel. Must be greater than or equal to zero and less than the width of the image.</param>
/// <param name="y">The y-coordinate of the pixel. Must be greater than or equal to zero and less than the height of the image.</param>
/// <returns>The <see typeparam="TPixel"/> at the specified position.</returns>
/// <exception cref="ArgumentOutOfRangeException">Thrown when the provided (x,y) coordinates are outside the image boundary.</exception>
public TPixel this[int x, int y]
{
[MethodImpl(InliningOptions.ShortMethod)]

1
src/ImageSharp/Image{TPixel}.cs

@ -145,6 +145,7 @@ namespace SixLabors.ImageSharp
/// <param name="x">The x-coordinate of the pixel. Must be greater than or equal to zero and less than the width of the image.</param>
/// <param name="y">The y-coordinate of the pixel. Must be greater than or equal to zero and less than the height of the image.</param>
/// <returns>The <see typeparam="TPixel"/> at the specified position.</returns>
/// <exception cref="ArgumentOutOfRangeException">Thrown when the provided (x,y) coordinates are outside the image boundary.</exception>
public TPixel this[int x, int y]
{
[MethodImpl(InliningOptions.ShortMethod)]

Loading…
Cancel
Save