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.
30 lines
839 B
30 lines
839 B
// <copyright file="GifFormat.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.Collections.Generic;
|
|
|
|
/// <summary>
|
|
/// Encapsulates the means to encode and decode gif images.
|
|
/// </summary>
|
|
public class GifFormat : IImageFormat
|
|
{
|
|
/// <inheritdoc/>
|
|
public string Extension => "gif";
|
|
|
|
/// <inheritdoc/>
|
|
public string MimeType => "image/gif";
|
|
|
|
/// <inheritdoc/>
|
|
public IEnumerable<string> SupportedExtensions => new string[] { "gif" };
|
|
|
|
/// <inheritdoc/>
|
|
public IImageDecoder Decoder => new GifDecoder();
|
|
|
|
/// <inheritdoc/>
|
|
public IImageEncoder Encoder => new GifEncoder();
|
|
}
|
|
}
|
|
|