ImageGlass/frmMain.cs
(开头部分) 68KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
ImageGlass Project - Image viewer for Windows
Copyright (C) 2012 DUONG DIEU PHAP
Project homepage: http://imageglass.codeplex.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Imaging;
using ImageGlass.Core;
using ImageGlass.Feature;
using System.IO;
using Microsoft.Win32;
using System.Threading;
namespace ImageGlass
{
public partial class frmMain : Form
{
public frmMain()
{
InitializeComponent();
}
#region Local variable
ImgMan man = new ImgMan(); // Mảng lưu trữ danh sách file ảnh
int cur = 0; // Index của hình ảnh đang xem
string path = null; // Đường dẫn thư mục hình ảnh đang xem
string initFile = null; // Ten file hình ảnh đang xem
Rectangle rect = Rectangle.Empty; // Widnow size memory (kiosk mode)
Rectangle[] zoom = new Rectangle[10]; // The zoom level memory
bool isZoom = false; // đặt dấu hiệu cho biết zoom để loại bỏ trường hợp load ảnh 2 lần ở Paint()
bool smoothPan = true; // Smooth panning?
bool lockEdges = true; // When moving, lock onto screen edges?
int scrollIdent = 0; // Sticky keys scrolling filter
bool slideshow = false; // Bắt đầu slide show
Point chrome = Point.Empty; // Windowborder offset
bool recursive = false; // Tìm kiếm đệ quy trong thư mục
List<string> dsExt = new List<string>(); // danh sach cac dinh dang file ho tro
bool isShowThumbnail = false; // co hien thumbnail ko?
bool imgError = false; // Kiểm tra xem ảnh hiện tại có bị lỗi không?
后面还有 1850 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。