Browse Source

Use new not shared options.

pull/2301/head
James Jackson-South 4 years ago
parent
commit
93a17007e6
  1. 2
      src/ImageSharp/Formats/Bmp/BmpDecoderOptions.cs
  2. 2
      src/ImageSharp/Formats/Jpeg/JpegDecoderOptions.cs
  3. 4
      tests/ImageSharp.Tests/TestUtilities/Tests/TestImageProviderTests.cs

2
src/ImageSharp/Formats/Bmp/BmpDecoderOptions.cs

@ -9,7 +9,7 @@ namespace SixLabors.ImageSharp.Formats.Bmp;
public sealed class BmpDecoderOptions : ISpecializedDecoderOptions public sealed class BmpDecoderOptions : ISpecializedDecoderOptions
{ {
/// <inheritdoc/> /// <inheritdoc/>
public DecoderOptions GeneralOptions { get; init; } = DecoderOptions.Default; public DecoderOptions GeneralOptions { get; init; } = new();
/// <summary> /// <summary>
/// Gets the value indicating how to deal with skipped pixels, /// Gets the value indicating how to deal with skipped pixels,

2
src/ImageSharp/Formats/Jpeg/JpegDecoderOptions.cs

@ -9,7 +9,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg;
public sealed class JpegDecoderOptions : ISpecializedDecoderOptions public sealed class JpegDecoderOptions : ISpecializedDecoderOptions
{ {
/// <inheritdoc/> /// <inheritdoc/>
public DecoderOptions GeneralOptions { get; init; } = DecoderOptions.Default; public DecoderOptions GeneralOptions { get; init; } = new();
/// <summary> /// <summary>
/// Gets the resize mode. /// Gets the resize mode.

4
tests/ImageSharp.Tests/TestUtilities/Tests/TestImageProviderTests.cs

@ -429,7 +429,7 @@ public class TestImageProviderTests
private class TestDecoderOptions : ISpecializedDecoderOptions private class TestDecoderOptions : ISpecializedDecoderOptions
{ {
public DecoderOptions GeneralOptions { get; init; } = DecoderOptions.Default; public DecoderOptions GeneralOptions { get; init; } = new();
} }
private class TestDecoderWithParametersOptions : ISpecializedDecoderOptions private class TestDecoderWithParametersOptions : ISpecializedDecoderOptions
@ -438,6 +438,6 @@ public class TestImageProviderTests
public int Param2 { get; init; } public int Param2 { get; init; }
public DecoderOptions GeneralOptions { get; init; } = DecoderOptions.Default; public DecoderOptions GeneralOptions { get; init; } = new();
} }
} }

Loading…
Cancel
Save