Skip to content

Commit 83f0979

Browse files
Allow setting configuration property
1 parent 5de22f4 commit 83f0979

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ImageSharp/Formats/DecoderOptions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ public sealed class DecoderOptions
1717

1818
/// <summary>
1919
/// Gets the shared default general decoder options instance.
20+
/// Used internally to reduce allocations for default decoding operations.
2021
/// </summary>
2122
internal static DecoderOptions Default { get; } = LazyOptions.Value;
2223

2324
/// <summary>
2425
/// Gets a custom configuration instance to be used by the image processing pipeline.
2526
/// </summary>
26-
public Configuration Configuration { get; internal set; } = Configuration.Default;
27+
public Configuration Configuration { get; init; } = Configuration.Default;
2728

2829
/// <summary>
2930
/// Gets the target size to decode the image into. Scaling should use an operation equivalent to <see cref="ResizeMode.Max"/>.

0 commit comments

Comments
 (0)