diff --git a/src/ImageSharp/Image/PixelArea{TColor}.cs b/src/ImageSharp/Image/PixelArea{TColor}.cs
index 2f631f66e..673fe5500 100644
--- a/src/ImageSharp/Image/PixelArea{TColor}.cs
+++ b/src/ImageSharp/Image/PixelArea{TColor}.cs
@@ -79,6 +79,17 @@ namespace ImageSharp
this.PixelBase = (byte*)this.dataPointer.ToPointer();
}
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The width.
+ /// The height.
+ /// The component order.
+ public PixelArea(int width, int height, ComponentOrder componentOrder)
+ : this(width, height, componentOrder, 0)
+ {
+ }
+
///
/// Initializes a new instance of the class.
///
diff --git a/tests/ImageSharp.Tests/Formats/Jpg/JpegTests.cs b/tests/ImageSharp.Tests/Formats/Jpg/JpegTests.cs
index 08efe5c89..6e0977541 100644
--- a/tests/ImageSharp.Tests/Formats/Jpg/JpegTests.cs
+++ b/tests/ImageSharp.Tests/Formats/Jpg/JpegTests.cs
@@ -8,6 +8,8 @@ using Xunit.Abstractions;
namespace ImageSharp.Tests.Formats.Jpg
{
+ using ImageSharp.Tests.TestUtilities;
+
public class JpegTests
{
@@ -19,60 +21,43 @@ namespace ImageSharp.Tests.Formats.Jpg
{
Output = output;
}
+ public static IEnumerable AllJpegFiles => TestImages.Jpeg.All;
- protected string CreateTestOutputFile(string fileName)
- {
- if (!Directory.Exists(TestOutputDirectory))
- {
- Directory.CreateDirectory(TestOutputDirectory);
- }
-
- //string id = Guid.NewGuid().ToString().Substring(0, 4);
-
- string ext = Path.GetExtension(fileName);
- fileName = Path.GetFileNameWithoutExtension(fileName);
-
- return $"{TestOutputDirectory}/{fileName}{ext}";
- }
-
- protected Stream CreateOutputStream(string fileName)
- {
- fileName = CreateTestOutputFile(fileName);
- Output?.WriteLine("Opened for write: "+fileName);
- return File.OpenWrite(fileName);
- }
-
- public static IEnumerable