首次提交:本地项目同步到Gitea

This commit is contained in:
zhusenlin
2026-01-24 08:45:54 +08:00
commit 4a6b23db69
256 changed files with 25311 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
namespace Io.Github.Kerwinxu.LibShapes.Core.Shape
{
/// <summary>
/// 矩形
/// </summary>
public class ShapeRectangle : ShapeEle
{
// 我将这个部分移动到ShapeEle部分了,默认情况下就是这种。
//public override GraphicsPath GetGraphicsPathWithAngle()
//{
// GraphicsPath path = new GraphicsPath();
// path.AddRectangle(new System.Drawing.RectangleF() {
// X = getX(),
// Y = getY(),
// Width = getWidth(),
// Height = getHeight()
// });
// return path;
// //throw new NotImplementedException();
//}
public override ShapeEle DeepClone()
{
string json = JsonConvert.SerializeObject(this);
return JsonConvert.DeserializeObject<ShapeRectangle>(json);
//throw new NotImplementedException();
}
}
}