Lines Matching refs:width
14 protected $width = 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);
162 $this->width = $info[0];
187 * @param int $width
192 protected function createImage($width, $height) argument
197 $canvas = @imagecreatetruecolor($width, $height);
200 $canvas = @imagecreate($width, $height);
269 * @param int $width
274 protected function cropPosition($width, $height) argument
276 if ($width == 0 && $height == 0) {
281 $height = $width;
284 if (!$width) {
285 $width = $height;
289 $oldRatio = $this->width / $this->height;
290 $newRatio = $width / $height;
295 $cropWidth = $this->width;
296 $cropHeight = (int)($this->width / $newRatio);
306 $cropWidth = $this->width;
307 $cropHeight = (int)($this->width / $newRatio);
312 $offsetX = (int)(($this->width - $cropWidth) / 2);
343 $this->width,
356 $this->width,
364 $this->width = $toWidth;