We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a09f1e3 commit fcc367fCopy full SHA for fcc367f
src/KnowledgePicker.WordCloud/Drawing/SkGraphicEngine.cs
@@ -14,15 +14,16 @@ public sealed class SkGraphicEngine : IGraphicEngine<SKBitmap>
14
private readonly WordCloudInput wordCloud;
15
16
public SkGraphicEngine(ISizer sizer, WordCloudInput wordCloud,
17
- SKTypeface? font = null)
+ SKTypeface? font = null, bool antialias = true)
18
{
19
Sizer = sizer;
20
Bitmap = new SKBitmap(wordCloud.Width, wordCloud.Height);
21
canvas = new SKCanvas(Bitmap);
22
textPaint = new SKPaint
23
24
Color = SKColor.Parse(wordCloud.TextColor),
25
- Typeface = font
+ Typeface = font,
26
+ IsAntialias = antialias
27
};
28
this.wordCloud = wordCloud;
29
}
0 commit comments