|
|
|
@ -19,7 +19,6 @@ namespace ImageSharp.Formats |
|
|
|
/// </summary>
|
|
|
|
public PngDecoderOptions() |
|
|
|
{ |
|
|
|
this.InitializeWithDefaults(); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -29,13 +28,12 @@ namespace ImageSharp.Formats |
|
|
|
private PngDecoderOptions(IDecoderOptions options) |
|
|
|
: base(options) |
|
|
|
{ |
|
|
|
this.InitializeWithDefaults(); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the encoding that should be used when reading text chunks.
|
|
|
|
/// </summary>
|
|
|
|
public Encoding TextEncoding { get; set; } |
|
|
|
public Encoding TextEncoding { get; set; } = DefaultEncoding; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Converts the options to a <see cref="IPngDecoderOptions"/> instance with a cast
|
|
|
|
@ -53,10 +51,5 @@ namespace ImageSharp.Formats |
|
|
|
|
|
|
|
return new PngDecoderOptions(options); |
|
|
|
} |
|
|
|
|
|
|
|
private void InitializeWithDefaults() |
|
|
|
{ |
|
|
|
this.TextEncoding = DefaultEncoding; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|