GifRecorder/Controls/SnapShots.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
namespace ScreenToGif.Controls
{
/// <summary>
/// The Snapshot control.
/// </summary>
public partial class SnapShots : ScrollableControl
{
public static List<Bitmap> images;
private static int _count = 30;
private bool _horizontalMode = true;
private int _cumulativeHeight = 0;
private int _cumulativeWidth = 0;
private int _margin = 0;
private int _verticalWidth = 0;
private int _squareWidth = 70;
private int _squareHeight = 55; //63
private int _numSquares = 100;
private float _zoom = 1.0f;
/// <summary>
/// True if the control should use the Horizontal orientation.
/// </summary>
public bool HorizontalMode
{
get { return _horizontalMode; }
set
{
if (_horizontalMode != value)
{
_horizontalMode = value;
Invalidate();
}
}
}
/// <summary>
/// Default constructor.
/// </summary>
public SnapShots()
{
InitializeComponent();
this.AutoScroll = true;
}
/// <summary>
/// Clears the internal list of images.
/// </summary>
public void Clear()
{
images = null;
Invalidate();
}
后面还有 125 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
