|
|
|
@ -18,6 +18,11 @@ namespace ImageSharp |
|
|
|
public sealed unsafe class PixelArea<TColor> : IDisposable |
|
|
|
where TColor : struct, IPackedPixel, IEquatable<TColor> |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// True if <see cref="Bytes"/> was rented from <see cref="BytesPool"/> by the constructor
|
|
|
|
/// </summary>
|
|
|
|
private readonly bool isBufferRented; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Provides a way to access the pixels from unmanaged memory.
|
|
|
|
/// </summary>
|
|
|
|
@ -28,11 +33,6 @@ namespace ImageSharp |
|
|
|
/// </summary>
|
|
|
|
private IntPtr dataPointer; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// True if <see cref="Bytes"/> was rented from <see cref="BytesPool"/> by the constructor
|
|
|
|
/// </summary>
|
|
|
|
private bool isBufferRented; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// A value indicating whether this instance of the given entity has been disposed.
|
|
|
|
/// </summary>
|
|
|
|
|