优化组件,去掉jquery 2

This commit is contained in:
2026-06-22 19:10:32 +08:00
parent 5b1248fdf8
commit 619f4f6d64
14 changed files with 28 additions and 33 deletions
+2 -3
View File
@@ -293,14 +293,13 @@ namespace COMCMS.Common
canvas.DrawLine(random.Next(0, width), random.Next(0, height), random.Next(0, width), random.Next(0, height), drawStyle);
}
// 在图片上写验证码
using SKFont textFont = new() { Size = 22 };
SKPaint textPaint = new SKPaint
{
IsAntialias = true,
TextAlign = SKTextAlign.Left,
Shader = SKShader.CreateLinearGradient(new SKPoint(0, 0), new SKPoint(width, height), new SKColor[] { SKColors.Blue, SKColors.DarkRed }, SKShaderTileMode.Clamp),
TextSize = 22
};
canvas.DrawText(text, 4, 24, textPaint);
canvas.DrawText(text, 4, 24, SKTextAlign.Left, textFont, textPaint);
//将文字写到画布上
//using (SKPaint drawStyle = new())