This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public string DrawRegularPolygonSK(int vertexCount, float radius, SocketCommandContext context, [Optional] int rndNum) | |
{ | |
string imagesPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "data", "images"); | |
if (!Directory.Exists(imagesPath)) | |
Directory.CreateDirectory(imagesPath); | |
using (SKBitmap bmp = new SKBitmap(1024, 1024)) | |
using (SKPaint outerPaint = new SKPaint()) | |
using (SKPaint innerPaint = new SKPaint()) | |
using (SKPaint textPaint = new SKPaint()) |