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.
63 lines
2.0 KiB
63 lines
2.0 KiB
// --------------------------------------------------------------------------------------------------------------------
|
|
// <copyright file="ImageInfo.cs" company="James South">
|
|
// Copyright (c) James South.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
// </copyright>
|
|
// <summary>
|
|
// Provides information about an image.
|
|
// <see cref="http://madskristensen.net/post/examine-animated-gife28099s-in-c" />
|
|
// </summary>
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
|
|
namespace ImageProcessor.Extensions
|
|
{
|
|
using System.Collections.Generic;
|
|
using ImageProcessor.Imaging;
|
|
|
|
/// <summary>
|
|
/// Provides information about an image.
|
|
/// <see cref="http://madskristensen.net/post/examine-animated-gife28099s-in-c"/>
|
|
/// </summary>
|
|
public class ImageInfo
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the image width.
|
|
/// </summary>
|
|
public int Width { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the image height.
|
|
/// </summary>
|
|
public int Height { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether the image is indexed.
|
|
/// </summary>
|
|
public bool IsIndexed { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether the image is animated.
|
|
/// </summary>
|
|
public bool IsAnimated { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether the image is looped.
|
|
/// </summary>
|
|
public bool IsLooped { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the loop count.
|
|
/// </summary>
|
|
public int LoopCount { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the gif frames.
|
|
/// </summary>
|
|
public ICollection<GifFrame> GifFrames { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the animation length in milliseconds.
|
|
/// </summary>
|
|
public int AnimationLength { get; set; }
|
|
}
|
|
}
|