Lines Matching refs:height
30 protected $height; variable in splitbrain\\slika\\ImageInfo
56 $this->height = $this->rawHeight;
110 return $this->height;
118 return [$this->width, $this->height];
152 list($this->width, $this->height) = [$this->height, $this->width];
164 * @param int|string $height in pixels or %
168 public function resize($width, $height) argument
170 list($w, $h) = self::boundingBox($this->width, $this->height, $width, $height);
172 $this->height = (int)$h;
183 * @param int|string $height in pixels or %
187 public function crop($width, $height) argument
190 $height = self::cleanDimension($height, $this->height);
192 if ($width == 0 && $height == 0) {
196 if (!$height) {
197 $height = $width;
200 $width = $height;
204 $this->height = (int)$height;
267 * @param int|string $height target height (pixels or %)
271 public static function boundingBox($origW, $origH, $width, $height) argument
274 $height = self::cleanDimension($height, $origH);
276 if ($width == 0 && $height == 0) {
280 if (!$height) {
282 $height = round(($width * $origH) / $origW);
285 $width = round(($height * $origW) / $origH);
288 $scale = min($width / $origW, $height / $origH);
290 $height = $origH * $scale;
293 return [$width, $height];