\Endroid\QrCode\WriterPngWriter

Summary

Methods
Properties
Constants
writeDataUri()
writeFile()
supportsExtension()
getSupportedExtensions()
getName()
writeString()
getContentType()
No public properties found
No constants found
getData()
No protected properties found
N/A
createImage()
createBaseImage()
createInterpolatedImage()
addLogo()
addLabel()
imageToString()
No private properties found
N/A

Methods

writeDataUri()

writeDataUri(\Endroid\QrCode\QrCodeInterface  $qrCode) 

Parameters

\Endroid\QrCode\QrCodeInterface $qrCode

writeFile()

writeFile(\Endroid\QrCode\QrCodeInterface  $qrCode, \Endroid\QrCode\Writer\string  $path) 

Parameters

\Endroid\QrCode\QrCodeInterface $qrCode
\Endroid\QrCode\Writer\string $path

supportsExtension()

supportsExtension(\Endroid\QrCode\Writer\string  $extension) 

Parameters

\Endroid\QrCode\Writer\string $extension

getSupportedExtensions()

getSupportedExtensions() 

getName()

getName() 

writeString()

writeString(\Endroid\QrCode\QrCodeInterface  $qrCode) 

Parameters

\Endroid\QrCode\QrCodeInterface $qrCode

getContentType()

getContentType() 

getData()

getData(\Endroid\QrCode\QrCodeInterface  $qrCode) 

Parameters

\Endroid\QrCode\QrCodeInterface $qrCode

createImage()

createImage(array  $data, \Endroid\QrCode\QrCodeInterface  $qrCode) 

Parameters

array $data
\Endroid\QrCode\QrCodeInterface $qrCode

createBaseImage()

createBaseImage(\Endroid\QrCode\Writer\int  $baseSize, array  $data, \Endroid\QrCode\QrCodeInterface  $qrCode) 

Parameters

\Endroid\QrCode\Writer\int $baseSize
array $data
\Endroid\QrCode\QrCodeInterface $qrCode

createInterpolatedImage()

createInterpolatedImage(  $baseImage, array  $data, \Endroid\QrCode\QrCodeInterface  $qrCode) 

Parameters

$baseImage
array $data
\Endroid\QrCode\QrCodeInterface $qrCode

addLogo()

addLogo(  $sourceImage, \Endroid\QrCode\Writer\string  $logoPath, \Endroid\QrCode\Writer\int  $logoWidth = null, \Endroid\QrCode\Writer\int  $logoHeight = null) 

Parameters

$sourceImage
\Endroid\QrCode\Writer\string $logoPath
\Endroid\QrCode\Writer\int $logoWidth
\Endroid\QrCode\Writer\int $logoHeight

addLabel()

addLabel(  $sourceImage, \Endroid\QrCode\Writer\string  $label, \Endroid\QrCode\Writer\string  $labelFontPath, \Endroid\QrCode\Writer\int  $labelFontSize, \Endroid\QrCode\Writer\string  $labelAlignment, array  $labelMargin, array  $foregroundColor, array  $backgroundColor) 

Parameters

$sourceImage
\Endroid\QrCode\Writer\string $label
\Endroid\QrCode\Writer\string $labelFontPath
\Endroid\QrCode\Writer\int $labelFontSize
\Endroid\QrCode\Writer\string $labelAlignment
array $labelMargin
array $foregroundColor
array $backgroundColor

imageToString()

imageToString(  $image) 

Parameters

$image