From f0b935efc51dfc61262cf7c01168f33cbe2dbcda Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Sun, 16 Oct 2022 17:56:58 +1000 Subject: [PATCH] TgaEncoder options should be immutable. --- src/ImageSharp/Formats/Tga/TgaEncoder.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ImageSharp/Formats/Tga/TgaEncoder.cs b/src/ImageSharp/Formats/Tga/TgaEncoder.cs index d57f3cb33..e0a393235 100644 --- a/src/ImageSharp/Formats/Tga/TgaEncoder.cs +++ b/src/ImageSharp/Formats/Tga/TgaEncoder.cs @@ -11,14 +11,14 @@ namespace SixLabors.ImageSharp.Formats.Tga; public sealed class TgaEncoder : ImageEncoder { /// - /// Gets or sets the number of bits per pixel. + /// Gets the number of bits per pixel. /// - public TgaBitsPerPixel? BitsPerPixel { get; set; } + public TgaBitsPerPixel? BitsPerPixel { get; init; } /// - /// Gets or sets a value indicating whether no compression or run length compression should be used. + /// Gets a value indicating whether no compression or run length compression should be used. /// - public TgaCompression Compression { get; set; } = TgaCompression.RunLength; + public TgaCompression Compression { get; init; } = TgaCompression.RunLength; /// public override void Encode(Image image, Stream stream)