Commit Latest
This commit is contained in:
@@ -20,7 +20,6 @@ public static class TextMarkerImageGenerator
|
||||
imageHelper.DrawLine(SKColors.Black,1, new SKPoint(0,height-1), new SKPoint(width-1,height-1)); // top left to right
|
||||
imageHelper.DrawLine(SKColors.Black,1, new SKPoint(0,height-1), new SKPoint(0,0)); // left hand side top to bottom
|
||||
imageHelper.DrawText(text, new SKPoint(width / 2, height-8), SKColors.Black, align, font);
|
||||
|
||||
using MemoryStream memoryStream = new MemoryStream();
|
||||
imageHelper.ToStream().CopyTo(memoryStream);
|
||||
return new ScottPlot.Image(memoryStream.ToArray());
|
||||
@@ -41,6 +40,5 @@ public static class TextMarkerImageGenerator
|
||||
imageHelper.Fill(color);
|
||||
Avalonia.Media.Imaging.Bitmap avBitmap = new Avalonia.Media.Imaging.Bitmap(imageHelper.ToStream());
|
||||
return avBitmap;
|
||||
// avBitmap.Save("c:\\3\\mybitmap.jpg"); }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user