ScreenToGif/ImageUtil/Encoder/GifFile.cs
(开头部分) 16KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Windows;
using ScreenToGif.Util;
using Color = System.Windows.Media.Color;
namespace ScreenToGif.ImageUtil.Encoder
{
//To test with: C:\Perl64\bin\perl C:\Users\Nicke\Desktop\DoctorGif.pl C:\Users\Nicke\Desktop\aaa.gif
//C:\Perl64\bin\perl C:\Users\Nicke\Desktop\DoctorGif.pl -verbose -debug "C:\Users\Nicke\Desktop\aaa.gif"
//http://www.interglacial.com/~sburke/pub/daktari_gif.html
/// <summary>
/// New gif encoder. Made by Nicke Manarin. Still slow and with no color quantization. :/
/// </summary>
public class GifFile : IDisposable
{
#region Properties
/// <summary>
/// Repeat Count for the gif.
/// </summary>
public int RepeatCount { get; set; } = 0;
/// <summary>
/// The color marked as transparent. Null if not in use.
/// </summary>
public Color? TransparentColor { get; set; }
/// <summary>
/// The maximum number of colors of each frame of the gif.
/// </summary>
public int MaximumNumberColor { get; set; } = 256;
/// <summary>
/// True if the gif should use a global color table instead of a local one.
/// </summary>
public bool UseGlobalColorTable { get; set; } = false;
/// <summary>
/// The stream which the gif is writen on.
/// </summary>
private Stream InternalStream { get; set; }
/// <summary>
/// True if it's the first frame of the gif.
/// </summary>
private bool IsFirstFrame { get; set; } = true;
/// <summary>
/// The full size rect of the gif.
/// </summary>
private Int32Rect FullSize { get; set; }
/// <summary>
/// The list of non indexed pixels colors.
/// </summary>
后面还有 442 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
