mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-17 14:00:12 +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>
|
||||
|
||||
Reference in New Issue
Block a user