Extensions/ImageGlass.Core/ImgMan.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
* imaeg - generic image utility in C#
* Copyright (C) 2010 ed <tripflag@gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License v2
* (version 2) as published by the Free Software Foundation.
*
* 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, refer to the following URL:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Threading;
using System.Windows.Forms;
using System.Drawing.Imaging;
namespace ImageGlass.Core
{
public class ImgMan
{
const int MAXQUE = 5;
string root;
List<Img> image;//luu danh sach img chua load
List<Img> queue;//load 1 so img vao bo nho
public ImgFilter filter;
public int loadNext = 0;//load truoc vao hanh doi
public bool imgError = false;
public Bitmap ErrorImage()
{
return ImageGlass.Core.Core.Properties.Resources.Image_Error;
}
public ImgMan()
{
image = new List<Img>();
queue = new List<Img>();
}
public ImgMan(string root, string[] names)
{
//debug();
this.root = root;
image = new List<Img>();
queue = new List<Img>();
foreach (string name in names)
{
image.Add(new Img(name));
}
后面还有 186 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。