QRImageWithLogo
Converts the matrix into GD images, raw or base64 output (requires ext-gd)
- Full name:
\chillerlan\QRCodeExamples\QRImageWithLogo
- Parent class:
\chillerlan\QRCode\Output\QRImage
Methods
dump
generates the output, optionally dumps it to a file, and returns it
Parameters:
Parameter | Type | Description |
---|---|---|
$file |
string|null | |
$logo |
string|null |
Throws:
Inherited methods
__construct
QROutputAbstract constructor.
public __construct(\chillerlan\Settings\SettingsContainerInterface $options, \chillerlan\QRCode\Data\QRMatrix $matrix): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$options |
\chillerlan\Settings\SettingsContainerInterface | |
$matrix |
\chillerlan\QRCode\Data\QRMatrix |
Throws:
setModuleValues
Sets the initial module values (clean-up & defaults)
saveToFile
saves the qr data to a file
Parameters:
Parameter | Type | Description |
---|---|---|
$data |
string | |
$file |
string |
Throws:
See Also:
- \chillerlan\QRCode\Output\file_put_contents() - * \chillerlan\QRCode\QROptions::cachefile -
dump
generates the output, optionally dumps it to a file, and returns it
Parameters:
Parameter | Type | Description |
---|---|---|
$file |
string |
setPixel
Creates a single QR pixel with the given settings
Parameters:
Parameter | Type | Description |
---|---|---|
$x |
int | |
$y |
int | |
$rgb |
array |
dumpImage
Creates the final image by calling the desired GD output function
Throws:
png
PNG output
gif
Jiff - like... JitHub!
jpg
JPG output
Automatically generated on 2025-03-18