Little Registry Cleaner/Common Tools/TreeViewAdv/GifDecoder.cs
(开头部分) 18KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
#pragma warning disable 675 // Bitwise-or operator used on a sign-extended operand
#region Java Info
/**
* 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.Drawing.Imaging;
using System.IO;
namespace Common_Tools.TreeViewAdv
{
public class GifFrame
{
private Image _image;
public Image Image
{
get { return _image; }
}
private int _delay;
public int Delay
{
get { return _delay; }
}
public GifFrame(Image im, int del)
{
_image = im;
_delay = del;
}
}
public class GifDecoder
{
public const int StatusOK = 0;//File read status: No errors.
public const int StatusFormatError = 1; //File read status: Error decoding file (may be partially decoded)
public const int StatusOpenError = 2; //Unable to open source.
后面还有 804 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。