Lines Matching refs:width

14     protected $width = 0;  variable in splitbrain\\slika\\GdAdapter
75 list($this->width, $this->height) = [$this->height, $this->width];
78 list($this->width, $this->height) = [$this->height, $this->width];
104 public function resize($width, $height, $upscale = true) argument
106 …list($width, $height) = ImageInfo::boundingBox($this->width, $this->height, $width, $height, $upsc…
107 $this->resizeOperation($width, $height);
115 public function crop($width, $height, $upscale = true) argument
117 $width = (int)$width;
119 if ($width == 0 && $height == 0) {
123 if (!$height) $height = $width;
124 if (!$width) $width = $height;
126 if (!$upscale && ($width > $this->width || $height > $this->height)) {
128 $cropWidth = min($width, $this->width);
132 $width = $cropWidth;
135 … list($cropWidth, $cropHeight, $offsetX, $offsetY) = $this->cropPosition($width, $height);
138 $this->width = $cropWidth;
140 $this->resizeOperation($width, $height, $offsetX, $offsetY);
184 $this->width = $info[0];
209 * @param int $width
214 protected function createImage($width, $height) argument
219 $canvas = @imagecreatetruecolor($width, $height);
222 $canvas = @imagecreate($width, $height);
293 * @param int $width resolved target width
297 protected function cropPosition($width, $height) argument
300 $oldRatio = $this->width / $this->height;
301 $newRatio = $width / $height;
306 $cropWidth = $this->width;
307 $cropHeight = (int)($this->width / $newRatio);
317 $cropWidth = $this->width;
318 $cropHeight = (int)($this->width / $newRatio);
337 (int)(($this->width - $cropWidth) / 2),
367 $this->width,
380 $this->width,
388 $this->width = $toWidth;