Skip to content

Update ArtQRCode.cs - #408

Merged
codebude merged 7 commits into
Shane32:masterfrom
Tragen:patch-1
Apr 17, 2024
Merged

Update ArtQRCode.cs#408
codebude merged 7 commits into
Shane32:masterfrom
Tragen:patch-1

Conversation

@Tragen

@Tragen Tragen commented Jun 29, 2022

Copy link
Copy Markdown
Contributor

Fixed dot size calculation where the size is divided instead of multiplied.

Fixed dot size calculaction
@Shane32

Shane32 commented Apr 6, 2024

Copy link
Copy Markdown
Owner

Previously the pixel size factor does not appear to have any effect.

With pixel size factor of 0.7: (default is 0.8)

Before:

test

After:

test

Demo of default size factor of 0.8:

test

It would seem that this PR should be merged, assuming this is the intent of the pixel size factor. However, any user code will now generate with smaller dots than previously, as previously it acted as though pixelSizeFactor was 1, and the default is 0.8. Test hashes will need to be updated.

Perhaps the default should be set to 1.0 going forward, to match the previous version's default behavior (??)

@Shane32

Shane32 commented Apr 13, 2024

Copy link
Copy Markdown
Owner

Changed the default to 1.0 to avoid breaking changes due to bugfix in pixelSizeFactor calculation
Comment thread QRCoderTests/ArtQRCodeRendererTests.cs Outdated

@Shane32 Shane32 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants