Lines Matching refs:w

43 	public function CoonsPatchMesh($x, $y, $w, $h, $patch_array = [], $x_min = 0, $x_max = 1, $y_min = 0, $y_max = 1, $colspace = 'RGB', $return = false)
46 $s.=sprintf(' %.3F %.3F %.3F %.3F re W n ', $x * Mpdf::SCALE, ($this->mpdf->h - $y) * Mpdf::SCALE, $w * Mpdf::SCALE, -$h * Mpdf::SCALE);
47 $s.=sprintf(' %.3F 0 0 %.3F %.3F %.3F cm ', $w * Mpdf::SCALE, $h * Mpdf::SCALE, $x * Mpdf::SCALE, ($this->mpdf->h - ($y + $h)) * Mpdf::SCALE);
155 public function Gradient($x, $y, $w, $h, $type, $stops = [], $colorspace = 'RGB', $coords = '', $extend = '', $return = false, $is_mask = false)
167 $bboxw = $w;
179 $tmp = $this->sizeConverter->convert($m[1], $this->mpdf->w, $this->mpdf->FontSize, false);
181 $coords[0] = $tmp / $w;
186 $tmp = $this->sizeConverter->convert($m[1], $this->mpdf->w, $this->mpdf->FontSize, false);
385 if ($w >= $h) {
386 $coords[1] *= $h / $w;
387 $coords[3] *= $h / $w;
389 $usey -= ($w - $h);
391 $coords[0] *= $w / $h;
392 $coords[2] *= $w / $h;
435 if ($w >= $h) {
436 $coords[1] = $coords[3] = ($coords[1] * $h / $w);
438 $corner2 = sqrt(($coords[0] ** 2) + ((($h / $w) - $coords[1]) ** 2));
440 $corner4 = sqrt(((1 - $coords[0]) ** 2) + ((($h / $w) - $coords[1]) ** 2));
442 $radius = min($coords[0], $coords[1], 1 - $coords[0], ($h / $w) - $coords[1]);
446 $radius = max($coords[0], $coords[1], 1 - $coords[0], ($h / $w) - $coords[1]);
451 $usey -= ($w - $h);
453 $coords[0] = $coords[2] = ($coords[0] * $w / $h);
456 $corner3 = sqrt(((($w / $h) - $coords[0]) ** 2) + ($coords[1] ** 2));
457 $corner4 = sqrt(((($w / $h) - $coords[0]) ** 2) + ((1 - $coords[1]) ** 2));
459 $radius = min($coords[0], $coords[1], ($w / $h) - $coords[0], 1 - $coords[1]);
463 $radius = max($coords[0], $coords[1], ($w / $h) - $coords[0], 1 - $coords[1]);
481 $s .= sprintf(' %.3F %.3F %.3F %.3F re W n', $x * Mpdf::SCALE, ($this->mpdf->h - $y) * Mpdf::SCALE, $w * Mpdf::SCALE, -$h * Mpdf::SCALE) . "\n";
513 $tmp = $this->sizeConverter->convert($m[1], $this->mpdf->w, $this->mpdf->FontSize, false);
679 $tmp = $this->sizeConverter->convert($m[1], $this->mpdf->w, $this->mpdf->FontSize, false);
687 $tmp = $this->sizeConverter->convert($m[1], $this->mpdf->w, $this->mpdf->FontSize, false);
804 $tmp = $this->sizeConverter->convert($m[1], $this->mpdf->w, $this->mpdf->FontSize, false);
812 $tmp = $this->sizeConverter->convert($m[1], $this->mpdf->w, $this->mpdf->FontSize, false);
911 $tmp = $this->sizeConverter->convert($m[1], $this->mpdf->w, $this->mpdf->FontSize, false);