mirror of https://github.com/SixLabors/ImageSharp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
688 B
23 lines
688 B
// <copyright file="GifDecoder.cs" company="James Jackson-South">
|
|
// Copyright (c) James Jackson-South and contributors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
// </copyright>
|
|
|
|
namespace ImageSharp.Formats
|
|
{
|
|
using System;
|
|
using System.IO;
|
|
|
|
/// <summary>
|
|
/// Decoder for generating an image out of a gif encoded stream.
|
|
/// </summary>
|
|
public class GifDecoder : IImageDecoder
|
|
{
|
|
/// <inheritdoc/>
|
|
public void Decode<TColor>(Image<TColor> image, Stream stream)
|
|
where TColor : struct, IPackedPixel, IEquatable<TColor>
|
|
{
|
|
new GifDecoderCore<TColor>().Decode(image, stream);
|
|
}
|
|
}
|
|
}
|
|
|