代码优化

This commit is contained in:
monitor1394
2022-12-22 21:51:08 +08:00
parent a5aa630b74
commit d7cfda2521
6 changed files with 25 additions and 17 deletions

View File

@@ -631,15 +631,5 @@ namespace XCharts.Runtime
SerieHelper.GetItemColor(out color, out toColor, serie, null, m_Theme);
return color;
}
/// <summary>
/// 保存图表为图片。
/// </summary>
/// <param name="imageType">type of image: png, jpg, exr</param>
/// <param name="savePath">save path</param>
public void SaveAsImage(string imageType = "png", string savePath = "")
{
StartCoroutine(SaveAsImageSync(imageType, savePath));
}
}
}