diff --git a/src/ImageSharp/Image/PixelArea{TColor}.cs b/src/ImageSharp/Image/PixelArea{TColor}.cs index 51e788d199..40e9e4e88e 100644 --- a/src/ImageSharp/Image/PixelArea{TColor}.cs +++ b/src/ImageSharp/Image/PixelArea{TColor}.cs @@ -101,8 +101,9 @@ namespace ImageSharp /// /// The width. /// The component order. - public PixelArea(int width, ComponentOrder componentOrder) - : this(width, 1, componentOrder, 0) + /// True if the buffer should be rented from ArrayPool + public PixelArea(int width, ComponentOrder componentOrder, bool usePool = false) + : this(width, 1, componentOrder, 0, usePool) { } @@ -112,8 +113,9 @@ namespace ImageSharp /// The width. /// The component order. /// The number of bytes to pad each row. - public PixelArea(int width, ComponentOrder componentOrder, int padding) - : this(width, 1, componentOrder, padding) + /// True if the buffer should be rented from ArrayPool + public PixelArea(int width, ComponentOrder componentOrder, int padding, bool usePool = false) + : this(width, 1, componentOrder, padding, usePool) { }