Form1.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace PICGEN
{
public partial class Form1 : Form
{
string path = "";
string currentpic = "";
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
folderBrowserDialog1.ShowDialog();
label1.Text = folderBrowserDialog1.SelectedPath;
path = folderBrowserDialog1.SelectedPath;
if (path == "") return;
DirectoryInfo root = new DirectoryInfo(folderBrowserDialog1.SelectedPath);
FileInfo[] pics = root.GetFiles("*.png");
listOld.Items.Clear();
for (int i = 0; i < pics.Length; i++)
{
listOld.Items.Add(pics[i].Name);
}
}
private void button2_Click(object sender, EventArgs e)
{
//翻转
Bitmap Img = new Bitmap(folderBrowserDialog1.SelectedPath + "//" + currentpic);
Img.RotateFlip(RotateFlipType.Rotate180FlipY);
pictureBox1.Image = Img;
this.Refresh();
}
private void listOld_SelectedIndexChanged(object sender, EventArgs e)
{
currentpic = listOld.SelectedItem.ToString();
Bitmap Img = new Bitmap(folderBrowserDialog1.SelectedPath + "//" + currentpic);
// Img.RotateFlip(RotateFlipType.Rotate180FlipY);
pictureBox1.Image = Img;
this.Refresh();
}
后面还有 166 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。