Web/DsoFramer/InsertQianMing.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Drawing;
using System.Drawing.Drawing2D;
public partial class Main_InsertQianMing : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
if (tbSignData.Text.Trim() != "")
{
DrawSign(tbSignData.Text);
}
else
{
ZWL.Common.MessageBox.Show(this, "未发现任何签名数据!");
}
}
private void DrawSign(string signdata)
{
System.Drawing.Bitmap image = new System.Drawing.Bitmap(400, 300);
Graphics g = Graphics.FromImage(image);
g.Clear(Color.White);
//SolidBrush brush = new SolidBrush(Color.WhiteSmoke);
//g.FillRectangle(brush, 0, 0, image.Width, image.Height);
try
{
Pen pen = new Pen(Color.Black);
string[] strokes = signdata.Split(new string[] { ";;" }, StringSplitOptions.RemoveEmptyEntries);
string[] tmp = null, detail;
int x1, x2, y1, y2;
for (int i = 0; i < strokes.Length; i++)
{
if (strokes[i] == null) continue;
tmp = strokes[i].Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries);
if (tmp == null || tmp.Length == 0) continue;
detail = tmp[0].Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries);
int clr = Convert.ToInt32(detail[0], 16);
pen.Color = Color.FromArgb((clr & 0xff), (clr & 0xff00) >> 8, (clr & 0xff0000) >> 16);
pen.Width = Convert.ToInt32(detail[1], 16);
x1 = Convert.ToInt32(detail[2], 16);
y1 = Convert.ToInt32(detail[3], 16);
for (int j = 1; j < tmp.Length; j++)
{
detail = tmp[j].Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries);
x2 = Convert.ToInt32(detail[0], 16);
y2 = Convert.ToInt32(detail[1], 16);
g.DrawLine(pen, x1, y1, x2, y2);
后面还有 24 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。