Lines Matching refs:width
28 protected $width; variable in splitbrain\\slika\\ImageInfo
55 $this->width = $this->rawWidth;
102 return $this->width;
118 return [$this->width, $this->height];
152 list($this->width, $this->height) = [$this->height, $this->width];
163 * @param int|string $width in pixels or %
168 public function resize($width, $height) argument
170 list($w, $h) = self::boundingBox($this->width, $this->height, $width, $height);
171 $this->width = (int)$w;
182 * @param int|string $width in pixels or %
187 public function crop($width, $height) argument
189 $width = self::cleanDimension($width, $this->width);
192 if ($width == 0 && $height == 0) {
197 $height = $width;
199 if (!$width) {
200 $width = $height;
203 $this->width = (int)$width;
266 * @param int|string $width target width (pixels or %)
271 public static function boundingBox($origW, $origH, $width, $height) argument
273 $width = self::cleanDimension($width, $origW);
276 if ($width == 0 && $height == 0) {
282 $height = round(($width * $origH) / $origW);
283 } else if (!$width) {
285 $width = round(($height * $origW) / $origH);
288 $scale = min($width / $origW, $height / $origH);
289 $width = $origW * $scale;
293 return [$width, $height];