Generate transparent image
Closed this issue · 2 comments
viktorstrate commented
Hi, thank you for making this great little library.
Is there a way to generate a PNG image with a transparent background?
pablohirafuji commented
Hi, you are welcome.
Yes, you can specify a transparent background color, eg.:
QRCode.toImageWithOptions
{ moduleSize = 5
, darkColor = 0xFF
, lightColor = 0xFFFFFF00
, quietZoneSize = 4
}
qrCode
viktorstrate commented
Got it, thank you. It even says so in the documentation :)