// // Copyright (c) James Jackson-South and contributors. // Licensed under the Apache License, Version 2.0. // namespace ImageSharp.Formats { using System; using System.IO; /// /// Decoder for generating an image out of a gif encoded stream. /// public class GifDecoder : IImageDecoder { /// public void Decode(Image image, Stream stream, IDecoderOptions options) where TColor : struct, IPixel { IGifDecoderOptions gifOptions = GifDecoderOptions.Create(options); this.Decode(image, stream, gifOptions); } /// /// Decodes the image from the specified stream to the . /// /// The pixel format. /// The to decode to. /// The containing image data. /// The options for the decoder. public void Decode(Image image, Stream stream, IGifDecoderOptions options) where TColor : struct, IPixel { new GifDecoderCore(options).Decode(image, stream); } } }