Browse Source

Add documentation to PixelAccessor

af/merge-core
James Jackson-South 10 years ago
parent
commit
e82ea2c6b7
  1. 8
      src/ImageSharp/Image/PixelAccessor.cs

8
src/ImageSharp/Image/PixelAccessor.cs

@ -420,6 +420,14 @@ namespace ImageSharp
return this.pixelsBase + ((targetY * this.Width) * Unsafe.SizeOf<TColor>());
}
/// <summary>
/// Checks the coordinates to ensure they are within bounds.
/// </summary>
/// <param name="x">The x-coordinate of the pixel. Must be greater than zero and smaller than the width of the pixel.</param>
/// <param name="y">The y-coordinate of the pixel. Must be greater than zero and smaller than the width of the pixel.</param>
/// <exception cref="ArgumentOutOfRangeException">
/// Thrown if the coordinates are not within the bounds of the image.
/// </exception>
[Conditional("DEBUG")]
private void CheckCoordinates(int x, int y)
{

Loading…
Cancel
Save