SimpleSoftwareIO\QrCode\BaconQrCodeGenerator::size PHP Method

size() public method

Changes the size of the QrCode.
public size ( integer $pixels )
$pixels integer The size of the QrCode in pixels
    public function size($pixels)
    {
        $this->writer->getRenderer()->setHeight($pixels);
        $this->writer->getRenderer()->setWidth($pixels);
        return $this;
    }

Usage Example

Example #1
0
 /**
  * Changes the size of the QrCode
  *
  * @param int $pixels The size of the QrCode in pixels
  * @return $this 
  * @static 
  */
 public static function size($pixels)
 {
     return \SimpleSoftwareIO\QrCode\BaconQrCodeGenerator::size($pixels);
 }