mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-23 09:20:08 +00:00
增加DrawRoundRectangleWithBorder接口
This commit is contained in:
@@ -1059,6 +1059,18 @@ namespace XUGL
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void DrawRoundRectangleWithBorder(VertexHelper vh, Rect rect,
|
||||||
|
Color32 color, Color32 toColor, float[] cornerRadius, float borderWidth, Color32 borderColor,
|
||||||
|
float rotate = 0, float smoothness = 2)
|
||||||
|
{
|
||||||
|
DrawRoundRectangle(vh, rect.center, rect.width, rect.height, color, toColor, rotate, cornerRadius,
|
||||||
|
false, smoothness, false);
|
||||||
|
if (borderWidth > 0)
|
||||||
|
{
|
||||||
|
UGL.DrawBorder(vh, rect, borderWidth, borderColor, rotate, cornerRadius);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 绘制(圆角)边框
|
/// 绘制(圆角)边框
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user