Thanks for all the good work.
The background color of the rounded and circle finder pattern shapes are always white.
The color of the square finder pattern shape is correct.
Is this something that can be solved?
Thanks in advance.
Hi Ikiru Yoshizaki,
I have found a solution for this problem. If you wish, you can review these changes and then possibly implement these adjustments in a new update if they are correct.
You can change the white color for the rounded and circle finder pattern shapes to the background color by changing these lines in your repository:
In 'QRCodeRenderer.cs'
line 115
finderPatternShape.Draw(canvas, finderRect, darkPaint, backgroundColor);
In 'FinderPatternShape.cs'
line 14
public abstract void Draw(SKCanvas canvas, SKRect rect, SKPaint paint, SKColor? backgroundColor);
line 31
public override void Draw(SKCanvas canvas, SKRect rect, SKPaint paint, SKColor? backgroundColor)
line 39
using var whitePaint = new SKPaint { Color = backgroundColor ?? SKColors.White, Style = SKPaintStyle.Fill };
line 71
public override void Draw(SKCanvas canvas, SKRect rect, SKPaint paint, SKColor? backgroundColor)
line 80
using var whitePaint = new SKPaint() { Color = backgroundColor ?? SKColors.White, Style = SKPaintStyle.Fill };
line 114
public override void Draw(SKCanvas canvas, SKRect rect, SKPaint paint, SKColor? backgroundColor)
line 123
using var whitePaint = new SKPaint { Color = backgroundColor ?? SKColors.White, Style = SKPaintStyle.Fill };
line 167
public override void Draw(SKCanvas canvas, SKRect rect, SKPaint paint, SKColor? backgroundColor)
line 182
using var whitePaint = new SKPaint { Color = backgroundColor ?? SKColors.White, Style = SKPaintStyle.Fill };
Thanks for all the good work.
The background color of the rounded and circle finder pattern shapes are always white.
The color of the square finder pattern shape is correct.
Is this something that can be solved?
Thanks in advance.
Hi Ikiru Yoshizaki,
I have found a solution for this problem. If you wish, you can review these changes and then possibly implement these adjustments in a new update if they are correct.
You can change the white color for the rounded and circle finder pattern shapes to the background color by changing these lines in your repository:
In 'QRCodeRenderer.cs'
line 115
finderPatternShape.Draw(canvas, finderRect, darkPaint, backgroundColor);
In 'FinderPatternShape.cs'
line 14
public abstract void Draw(SKCanvas canvas, SKRect rect, SKPaint paint, SKColor? backgroundColor);
line 31
public override void Draw(SKCanvas canvas, SKRect rect, SKPaint paint, SKColor? backgroundColor)
line 39
using var whitePaint = new SKPaint { Color = backgroundColor ?? SKColors.White, Style = SKPaintStyle.Fill };
line 71
public override void Draw(SKCanvas canvas, SKRect rect, SKPaint paint, SKColor? backgroundColor)
line 80
using var whitePaint = new SKPaint() { Color = backgroundColor ?? SKColors.White, Style = SKPaintStyle.Fill };
line 114
public override void Draw(SKCanvas canvas, SKRect rect, SKPaint paint, SKColor? backgroundColor)
line 123
using var whitePaint = new SKPaint { Color = backgroundColor ?? SKColors.White, Style = SKPaintStyle.Fill };
line 167
public override void Draw(SKCanvas canvas, SKRect rect, SKPaint paint, SKColor? backgroundColor)
line 182
using var whitePaint = new SKPaint { Color = backgroundColor ?? SKColors.White, Style = SKPaintStyle.Fill };