Lines Matching refs:cropWidth
128 $cropWidth = min($width, $this->width);
130 list($offsetX, $offsetY) = $this->centerOffset($cropWidth, $cropHeight);
132 $width = $cropWidth;
135 … list($cropWidth, $cropHeight, $offsetX, $offsetY) = $this->cropPosition($width, $height);
138 $this->width = $cropWidth;
306 $cropWidth = $this->width;
309 $cropWidth = (int)($this->height * $newRatio);
314 $cropWidth = (int)($this->height * $newRatio);
317 $cropWidth = $this->width;
322 list($offsetX, $offsetY) = $this->centerOffset($cropWidth, $cropHeight);
324 return [$cropWidth, $cropHeight, $offsetX, $offsetY];
330 * @param int $cropWidth width of the region to extract
334 protected function centerOffset($cropWidth, $cropHeight) argument
337 (int)(($this->width - $cropWidth) / 2),