GifRecorder/Encoding/GifDecoder.cs
(开头部分) 26KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
#region .NET Disclaimer/Info
//==
//
// gOODiDEA, uland.com
//==
//
// $Header : $
// $Author : $
// $Date : $
// $Revision: $
// $History: $
//
//==
#endregion
#region Java
/**
* Class GifDecoder - Decodes a GIF file into one or more frames.
* <br><pre>
* Example:
* GifDecoder d = new GifDecoder();
* d.read("sample.gif");
* int n = d.getFrameCount();
* for (int i = 0; i < n; i++) {
* BufferedImage frame = d.getFrame(i); // frame i
* int t = d.getDelay(i); // display duration of frame in milliseconds
* // do something with frame
* }
* </pre>
* No copyright asserted on the source code of this class. May be used for
* any purpose, however, refer to the Unisys LZW patent for any additional
* restrictions. Please forward any corrections to kweiner@fmsware.com.
*
* @author Kevin Weiner, FM Software; LZW decoder adapted from John Cristy's ImageMagick.
* @version 1.03 November 2003
*
*/
#endregion
using System;
using System.Collections;
using System.Drawing;
using System.IO;
namespace ScreenToGif.Encoding
{
/// <summary>
/// Gif Reader Class
/// </summary>
public class GifDecoder
{
/// <summary>
/// File read status: No errors.
/// </summary>
private static readonly int STATUS_OK = 0;
/// <summary>
/// File read status: Error decoding file (may be partially decoded)
/// </summary>
public static readonly int STATUS_FORMAT_ERROR = 1;
后面还有 850 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
