qrcode-juicypixels-0.8.1: Converts a qrcode-core image to JuicyPixels

Safe HaskellNone
LanguageHaskell2010

Codec.QRCode.JuicyPixels

Contents

Synopsis

Image

toImage Source #

Arguments

:: Int

Border to add around the QR code, recommended is 4 (<0 is treated as 0)

-> Int

Factor to scale the image (<1 is treated as 1)

-> QRImage

The QRImage

-> Image Pixel8 

Convert the QR code into an image.

If this is not the required image format use promoteImage and/or convertImage.

URL

toPngDataUrlBS :: Int -> Int -> QRImage -> ByteString Source #

Convert an QR code into a Uri. Has the same arguments as toImage.

This can be used to display a image in HTML without creating a temporary file.

toPngDataUrlS :: Int -> Int -> QRImage -> String Source #

Convert an QR code into a Uri. Has the same arguments as toImage.

Like toPngDataUrlBS but with a to String conversion afterwards.

toPngDataUrlT :: Int -> Int -> QRImage -> Text Source #

Convert an QR code into a Uri. Has the same arguments as toImage.

Like toPngDataUrlS but with a to Text conversion afterwards.