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 %
169 public function resize($width, $height, $upscale = true) argument
171 list($w, $h) = self::boundingBox($this->width, $this->height, $width, $height, $upscale);
172 $this->width = (int)$w;
183 * @param int $width in pixels
189 public function crop($width, $height, $upscale = true) argument
191 $width = (int)$width;
194 if ($width == 0 && $height == 0) {
199 $height = $width;
201 if (!$width) {
202 $width = $height;
205 if (!$upscale && ($width > $this->width || $height > $this->height)) {
207 $width = min($width, $this->width);
211 $this->width = (int)$width;
274 * @param int|string $width target width (pixels or %)
280 public static function boundingBox($origW, $origH, $width, $height, $upscale = true) argument
282 $width = self::cleanDimension($width, $origW);
285 if ($width == 0 && $height == 0) {
291 $scale = $width / $origW;
292 } else if (!$width) {
297 $scale = min($width / $origW, $height / $origH);