Browse Source

more usePool constructors

pull/58/head
antonfirsov 10 years ago
parent
commit
b4575e6863
  1. 10
      src/ImageSharp/Image/PixelArea{TColor}.cs

10
src/ImageSharp/Image/PixelArea{TColor}.cs

@ -101,8 +101,9 @@ namespace ImageSharp
/// </summary> /// </summary>
/// <param name="width">The width.</param> /// <param name="width">The width.</param>
/// <param name="componentOrder">The component order.</param> /// <param name="componentOrder">The component order.</param>
public PixelArea(int width, ComponentOrder componentOrder) /// <param name="usePool">True if the buffer should be rented from ArrayPool</param>
: this(width, 1, componentOrder, 0) public PixelArea(int width, ComponentOrder componentOrder, bool usePool = false)
: this(width, 1, componentOrder, 0, usePool)
{ {
} }
@ -112,8 +113,9 @@ namespace ImageSharp
/// <param name="width">The width. </param> /// <param name="width">The width. </param>
/// <param name="componentOrder">The component order.</param> /// <param name="componentOrder">The component order.</param>
/// <param name="padding">The number of bytes to pad each row.</param> /// <param name="padding">The number of bytes to pad each row.</param>
public PixelArea(int width, ComponentOrder componentOrder, int padding) /// <param name="usePool">True if the buffer should be rented from ArrayPool</param>
: this(width, 1, componentOrder, padding) public PixelArea(int width, ComponentOrder componentOrder, int padding, bool usePool = false)
: this(width, 1, componentOrder, padding, usePool)
{ {
} }

Loading…
Cancel
Save