Skip to content

Commit

Permalink
Fixed low quality images in Resizetizer, issue #23212.
Browse files Browse the repository at this point in the history
  • Loading branch information
TommiGustafsson-HMP committed Jul 30, 2024
1 parent 491c227 commit 2be16b7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/SingleProject/Resizetizer/src/SkiaSharpTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ public SkiaSharpTools(string filename, SKSize? baseSize, SKColor? backgroundColo
Filename = filename;
BaseSize = baseSize;
BackgroundColor = backgroundColor;
Paint = new SKPaint
{
FilterQuality = SKFilterQuality.High
};

if (tintColor is SKColor tint)
{
Logger?.Log($"Detected a tint color of {tint}");

Paint = new SKPaint
{
ColorFilter = SKColorFilter.CreateBlendMode(tint, SKBlendMode.SrcIn)
};
Paint.ColorFilter = SKColorFilter.CreateBlendMode(tint, SKBlendMode.SrcIn);
}
}

Expand Down

0 comments on commit 2be16b7

Please sign in to comment.