code: public function setWidth($pValue)
      {
          // Resize proportional?
          if ($this->resizeProportional && $pValue != 0) {
              $ratio = $this->height / ($this->width != 0 ? $this->width : 1);
              $this->height = round($ratio * $pValue);
          }
  
          // Set width
          $this->width = $pValue;
  
          return $this;
      }
docs: Set Width.
  
  @param int $pValue
  
  @return BaseDrawing