\BaconQrCode\RendererImageRenderer

Summary

Methods
Properties
Constants
__construct()
render()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
drawEyes()
drawEye()
$rendererStyle
$imageBackEnd
N/A

Properties

$rendererStyle

$rendererStyle : \BaconQrCode\Renderer\RendererStyle\RendererStyle

Type

RendererStyle

$imageBackEnd

$imageBackEnd : \BaconQrCode\Renderer\Image\ImageBackEndInterface

Type

ImageBackEndInterface

Methods

__construct()

__construct(\BaconQrCode\Renderer\RendererStyle\RendererStyle  $rendererStyle, \BaconQrCode\Renderer\Image\ImageBackEndInterface  $imageBackEnd) : mixed

Parameters

\BaconQrCode\Renderer\RendererStyle\RendererStyle $rendererStyle
\BaconQrCode\Renderer\Image\ImageBackEndInterface $imageBackEnd

Returns

mixed —

render()

render(\BaconQrCode\Encoder\QrCode  $qrCode) : string

Parameters

\BaconQrCode\Encoder\QrCode $qrCode

Throws

\BaconQrCode\Exception\InvalidArgumentException

if matrix width doesn't match height

Returns

string —

drawEyes()

drawEyes(int  $matrixSize, \BaconQrCode\Renderer\Path\Path  $modulePath) : \BaconQrCode\Renderer\Path\Path

Parameters

int $matrixSize
\BaconQrCode\Renderer\Path\Path $modulePath

Returns

\BaconQrCode\Renderer\Path\Path —

drawEye()

drawEye(\BaconQrCode\Renderer\Path\Path  $externalPath, \BaconQrCode\Renderer\Path\Path  $internalPath, \BaconQrCode\Renderer\RendererStyle\EyeFill  $fill, float  $xTranslation, float  $yTranslation, int  $rotation, \BaconQrCode\Renderer\Path\Path  $modulePath) : \BaconQrCode\Renderer\Path\Path

Parameters

\BaconQrCode\Renderer\Path\Path $externalPath
\BaconQrCode\Renderer\Path\Path $internalPath
\BaconQrCode\Renderer\RendererStyle\EyeFill $fill
float $xTranslation
float $yTranslation
int $rotation
\BaconQrCode\Renderer\Path\Path $modulePath

Returns

\BaconQrCode\Renderer\Path\Path —