// Copyright (c) Six Labors and contributors. // Licensed under the Apache License, Version 2.0. using System.IO; using SixLabors.ImageSharp.PixelFormats; namespace SixLabors.ImageSharp.Formats.Tga { /// /// Image decoder for Truevision TGA images. /// public sealed class TgaDecoder : IImageDecoder, ITgaDecoderOptions, IImageInfoDetector { /// public Image Decode(Configuration configuration, Stream stream) where TPixel : struct, IPixel { Guard.NotNull(stream, nameof(stream)); return new TgaDecoderCore(configuration, this).Decode(stream); } /// public Image Decode(Configuration configuration, Stream stream) => this.Decode(configuration, stream); /// public IImageInfo Identify(Configuration configuration, Stream stream) { Guard.NotNull(stream, nameof(stream)); return new TgaDecoderCore(configuration, this).Identify(stream); } } }