$margin
$margin : integer
Margin around the QR code, also known as quiet zone.
EPS backend.
$backgroundColor : \BaconQrCode\Renderer\Color\ColorInterface
Background color.
$foregroundColor : \BaconQrCode\Renderer\Color\ColorInterface
Foreground color.
setMargin(integer $margin) : \BaconQrCode\Renderer\Image\AbstractRenderer
Sets the margin around the QR code.
integer | $margin |
setWidth(integer $width) : \BaconQrCode\Renderer\Image\AbstractRenderer
Sets the height around the renderd image.
If the width is smaller than the matrix width plus padding, the renderer will automatically use that as the width instead of the specified one.
integer | $width |
setHeight(integer $height) : \BaconQrCode\Renderer\Image\AbstractRenderer
Sets the height around the renderd image.
If the height is smaller than the matrix height plus padding, the renderer will automatically use that as the height instead of the specified one.
integer | $height |
setRoundDimensions(boolean $flag) : \BaconQrCode\Renderer\Image\AbstractRenderer
Sets whether dimensions should be rounded down.
boolean | $flag |
setBackgroundColor(\BaconQrCode\Renderer\Color\ColorInterface $color) : \BaconQrCode\Renderer\Image\AbstractRenderer
Sets background color.
\BaconQrCode\Renderer\Color\ColorInterface | $color |
getBackgroundColor() : \BaconQrCode\Renderer\Color\ColorInterface
Gets background color.
setForegroundColor(\BaconQrCode\Renderer\Color\ColorInterface $color) : \BaconQrCode\Renderer\Image\AbstractRenderer
Sets foreground color.
\BaconQrCode\Renderer\Color\ColorInterface | $color |
getForegroundColor() : \BaconQrCode\Renderer\Color\ColorInterface
Gets foreground color.
addDecorator(\BaconQrCode\Renderer\Image\Decorator\DecoratorInterface $decorator) : \BaconQrCode\Renderer\Image\AbstractRenderer
Adds a decorator to the renderer.
\BaconQrCode\Renderer\Image\Decorator\DecoratorInterface | $decorator |
render(\BaconQrCode\Encoder\QrCode $qrCode) : string
render(): defined by RendererInterface.
\BaconQrCode\Encoder\QrCode | $qrCode |
addColor(string $id, \BaconQrCode\Renderer\Color\ColorInterface $color) : void
addColor(): defined by RendererInterface.
string | $id | |
\BaconQrCode\Renderer\Color\ColorInterface | $color |
Loading…