Changes the size of the QrCode.

@param int $pixels The size of the QrCode in pixels

@return $this
16338
public function size($pixels)
    {
        $this->writer->getRenderer()->setHeight($pixels);
        $this->writer->getRenderer()->setWidth($pixels);

        return $this;
    }
1259169
public function pixelate($blockSize = 5, $useModernEffect = true) {
		imagefilter($this->resource, IMG_FILTER_PIXELATE, $blockSize, $useModernEffect);
		return $this;
	}
228622
public final function rotateSquare() : Size
   {

      $this->triggerFixedErrorByNeed( 'rotateSquare' );

      $tmp          = $this->_width;
      $this->_width  = $this->_height;
      $this->_height = $tmp;

      return $this;

   }
784593
public function setSize($width, $height)
    {
        $this->width = $width;
        $this->height = $height;
        $this->ratioX = $width / $height;
        $this->ratioY = $height / $width;

        return $this;
    }
413968
public function setWidth($width)
    {
        if (!is_scalar($width)) {
            throw new Exception\InvalidArgumentException(__METHOD__ . ' Width parameter must be scalar.');
        }
        $this->properties['width'] = $width;

        return $this;
    }
1111243
public function setSize($pValue = 10)
    {
        if ($pValue == '') {
            $pValue = 10;
        }
        if ($this->isSupervisor) {
            $styleArray = $this->getStyleArray(array('size' => $pValue));
            $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
        } else {
            $this->size = $pValue;
        }
        return $this;
    }
1149850
public function setSize($size)
    {
        if (strpos($size, 'col-') === false) {
            $size = 'col-'.$size.'-';
        }

        $this->size = $size;

        return $this;
    }
449180
public function setSize($size)
    {
        $this->cachedParams = null;

        $this->checkSize($size);

        $this->size = $size;

        return $this;
    }
449532
public function resizeH($height)
    {
        $tmpWidth = $height / $this->height * $this->width;
        $this->resize((int)$tmpWidth, (int)$height);
    }
1024711
public function resize(int $width, int $height, bool $crop = false): self
    {
        $this->image = $this->resizeImage($this->image, $width, $height, $crop);
        return $this;
    }
693954
public function resize($width, $height) {
		$image = imagecreatetruecolor($width, $height);
		imagecopyresampled($image, $this->_image, 0, 0, 0, 0, $width, $height, $this->width, $this->height);
		imagedestroy($this->_image);
		$this->_image = $image;
		return $this;
	}
8900
protected function updateDimensions()
  {
    $this->width  = $this->image ? imagesx($this->image) : null;
    $this->height = $this->image ? imagesy($this->image) : null;

    return $this;
  }
792892
public function setWidth( $width )
    {
        $this->width = empty( $width ) ? null : (int) $width;
        return $this;
    }
800986
public function resize($width, $height) {
		$image = imagecreatetruecolor($width, $height);
		imagealphablending($image, false);
		imagesavealpha($image, true);
		imagecopyresampled($image, $this->_image, 0, 0, 0, 0, $width, $height, $this->width, $this->height);
		imagedestroy($this->_image);
		$this->_image = $image;
		return $this;
	}
716267
public function resize(Int $width, Int $height) : Thumb
    {
        $this->sets['rewidth']  = $width;
        $this->sets['reheight'] = $height;

        return $this;
    }
594629
public function setSize($iSize = null)
    {
        if (null === $iSize) {
            return $this;
        }

        $iSize = intval($iSize);

        if ($iSize < 0 || $iSize > 2048) {
            throw new InvalidImageSizeException('Avatar size must be within 0 pixels and 2048 pixels');
        }

        $this->iSize = $iSize;

        return $this;
    }
559443
public function setColumnWidths(array $widths)
    {
        $this->columnWidths = [];
        foreach ($widths as $index => $width) {
            $this->setColumnWidth($index, $width);
        }

        return $this;
    }