Skip to content

Commit

Permalink
Enable antialiasing explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
jjonescz committed May 23, 2022
1 parent a09f1e3 commit fcc367f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/KnowledgePicker.WordCloud/Drawing/SkGraphicEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@ public sealed class SkGraphicEngine : IGraphicEngine<SKBitmap>
private readonly WordCloudInput wordCloud;

public SkGraphicEngine(ISizer sizer, WordCloudInput wordCloud,
SKTypeface? font = null)
SKTypeface? font = null, bool antialias = true)
{
Sizer = sizer;
Bitmap = new SKBitmap(wordCloud.Width, wordCloud.Height);
canvas = new SKCanvas(Bitmap);
textPaint = new SKPaint
{
Color = SKColor.Parse(wordCloud.TextColor),
Typeface = font
Typeface = font,
IsAntialias = antialias
};
this.wordCloud = wordCloud;
}
Expand Down

0 comments on commit fcc367f

Please sign in to comment.