codebude / QRCoder

A pure C# Open Source QR Code implementation
MIT License
4.46k stars 1.09k forks source link

Module size (note pixelsPerModule) #463

Closed M-t-t-h closed 3 months ago

M-t-t-h commented 1 year ago

Type of issue

[ ] Bug
[X ] Question (e.g. about handling/usage)
[X ] Request for new feature/improvement

Expected Behavior

First, thanks for this code, it's great work and already full of utilities. About my question (future request if not possible :) ): I d'like to get "smaller module", like modure with white border. I Tried a lot of parameters but pixelPerModule not answer to my probleme and looks have small impact

Si, is it possible to change de "square size" (module size) ? I attach a image. Left : what QRCode do, right: what i d'like to do.

qrcodeTicket Thanks in advance !

Current Behavior

Possible Solution (optional)

Steps to Reproduce (for bugs)

Your Environment

Latest nugget for c# code

codebude commented 3 months ago

From QRCoder version 1.5.0 on (soon to be released), you can use the ArtQrCode renderer (instead of QrCode) and its parameter pixelSizeFactor to get your expected results. See also: https://github.com/codebude/QRCoder/wiki/Advanced-usage---QR-Code-renderers#211-artqrcode-renderer-in-detail