Lines Matching refs:height

16     protected $height = 0;  variable in splitbrain\\slika\\GdAdapter
98 list($this->width, $this->height) = [$this->height, $this->width];
101 list($this->width, $this->height) = [$this->height, $this->width];
126 public function resize($width, $height) argument
128 list($width, $height) = $this->boundingBox($width, $height);
129 $this->resizeOperation($width, $height);
137 public function crop($width, $height) argument
139 … list($this->width, $this->height, $offsetX, $offsetY) = $this->cropPosition($width, $height);
140 $this->resizeOperation($width, $height, $offsetX, $offsetY);
185 $this->height = $info[1];
210 * @param int $height
214 protected function createImage($width, $height) argument
219 $canvas = @imagecreatetruecolor($width, $height);
222 $canvas = @imagecreate($width, $height);
292 * @param int $height height of the bounding box
296 protected function boundingBox($width, $height) argument
299 $height = $this->cleanDimension($height, $this->height);
301 if ($width == 0 && $height == 0) {
305 if (!$height) {
307 $height = round(($width * $this->height) / $this->width);
310 $width = round(($height * $this->width) / $this->height);
313 $scale = min($width / $this->width, $height / $this->height);
315 $height = $this->height * $scale;
318 return [$width, $height];
348 * @param int $height
352 protected function cropPosition($width, $height) argument
354 if ($width == 0 && $height == 0) {
358 if (!$height) {
359 $height = $width;
363 $width = $height;
367 $oldRatio = $this->width / $this->height;
368 $newRatio = $width / $height;
376 $cropWidth = (int)($this->height * $newRatio);
377 $cropHeight = $this->height;
381 $cropWidth = (int)($this->height * $newRatio);
382 $cropHeight = $this->height;
391 $offsetY = (int)(($this->height - $cropHeight) / 2);
422 $this->height
435 $this->height
443 $this->height = $toHeight;