Lines Matching refs:height
16 protected $height = 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) argument
106 … list($width, $height) = ImageInfo::boundingBox($this->width, $this->height, $width, $height);
107 $this->resizeOperation($width, $height);
115 public function crop($width, $height) argument
117 … list($this->width, $this->height, $offsetX, $offsetY) = $this->cropPosition($width, $height);
118 $this->resizeOperation($width, $height, $offsetX, $offsetY);
163 $this->height = $info[1];
188 * @param int $height
192 protected function createImage($width, $height) argument
197 $canvas = @imagecreatetruecolor($width, $height);
200 $canvas = @imagecreate($width, $height);
270 * @param int $height
274 protected function cropPosition($width, $height) argument
276 if ($width == 0 && $height == 0) {
280 if (!$height) {
281 $height = $width;
285 $width = $height;
289 $oldRatio = $this->width / $this->height;
290 $newRatio = $width / $height;
298 $cropWidth = (int)($this->height * $newRatio);
299 $cropHeight = $this->height;
303 $cropWidth = (int)($this->height * $newRatio);
304 $cropHeight = $this->height;
313 $offsetY = (int)(($this->height - $cropHeight) / 2);
344 $this->height
357 $this->height
365 $this->height = $toHeight;