diff --git a/MarketData/MarketDataLib/CNNProcessing/ImageHelper.cs b/MarketData/MarketDataLib/CNNProcessing/ImageHelper.cs index 51d4efe..aed5f53 100644 --- a/MarketData/MarketDataLib/CNNProcessing/ImageHelper.cs +++ b/MarketData/MarketDataLib/CNNProcessing/ImageHelper.cs @@ -488,22 +488,22 @@ namespace MarketData.CNNProcessing paint.StrokeWidth = strokeWidth; // Set the desired stroke width paint.Color = color; canvas.DrawLine(txSrcPoint, txDstPoint, paint); - } + } - /// - /// Draw text on the bitmap - /// - /// - /// - /// - /// - public void DrawText(String text, SKPoint srcPoint,SKColor color,SKTextAlign align,SKFont font, float strokeWidth=1) + /// + /// Draw text on the bitmap + /// + /// + /// + /// + /// + public void DrawText(String text, SKPoint srcPoint, SKColor color, SKTextAlign align, SKFont font,SKPaintStyle paintStyle=SKPaintStyle.Fill,float strokeWidth = 1) { Validate(); SKPoint txSrcPoint = pointMapping.MapPoint(srcPoint); using SKCanvas canvas = new SKCanvas(bitmap); using SKPaint paint = new SKPaint(); - paint.Style = SKPaintStyle.Stroke; + paint.Style = paintStyle; paint.StrokeWidth = strokeWidth; // Set the desired stroke width paint.Color = color; canvas.DrawText(text,srcPoint, align, font, paint);