Home
last modified time | relevance | path

Searched refs:bbox (Results 1 – 7 of 7) sorted by relevance

/PHP-5.6/ext/gd/tests/
H A Dbug48801.phpt12 $bbox = imageftbbox(50, 0, $font, "image");
13 echo '(' . $bbox[0] . ', ' . $bbox[1] . ")\n";
14 echo '(' . $bbox[2] . ', ' . $bbox[3] . ")\n";
15 echo '(' . $bbox[4] . ', ' . $bbox[5] . ")\n";
16 echo '(' . $bbox[6] . ', ' . $bbox[7] . ")\n";
H A Dbug43073.phpt40 $bbox = imagettftext($g, 24, $angle, 400+$x, 400+$y, $black, $font, 'ABCDEF');
41 imagepolygon($g, $bbox, 4, $red);
44 if ($bbox[$j] >= $exp[$i][$j] - 1 && $bbox[$j] <= $exp[$i][$j] + 1) {
47 echo "(expected $exp[$i][$j], got $bbox[$j])";
H A Dbug48732.phpt15 $bbox = imagettftext($g, 12, 0, 0, 20, $black, $font, "ABCEDFGHIJKLMN\nopqrstu\n");
17 echo 'Left Bottom: (' . $bbox[0] . ', ' . $bbox[1] . ')';
H A Dbug53504.phpt53 $bbox = imageftbbox($test['fontSize'], $test['angle'], $font, $test['text']);
57 if ($bbox[$i] >= $exp - 2 && $bbox[$i] <= $exp + 2) {
60 echo "(expected $exp, got $bbox[$i])";
69 for ($i = 0; $i < count($bbox); $i += 2) {
70 if ($bbox[$i] + $test['x'] !== $bboxDrawn[$i]) echo "imageftbbox and imagefttext differ!\n";
71 …if ($bbox[$i + 1] + $test['y'] !== $bboxDrawn[$i + 1]) echo "imageftbbox and imagefttext differ!\n…
/PHP-5.6/ext/gd/libgd/
H A Dgdft.c813 FT_BBox bbox, glyph_bbox; local
911 bbox.xMin = bbox.xMax = bbox.yMin = bbox.yMax = 0;
1109 bbox.xMin = glyph_bbox.xMin;
1190 brect[0] = (int) (bbox.xMin * cos_a - bbox.yMin * sin_a);
1191 brect[1] = (int) (bbox.xMin * sin_a + bbox.yMin * cos_a);
1192 brect[2] = (int) (bbox.xMax * cos_a - bbox.yMin * sin_a);
1193 brect[3] = (int) (bbox.xMax * sin_a + bbox.yMin * cos_a);
1194 brect[4] = (int) (bbox.xMax * cos_a - bbox.yMax * sin_a);
1195 brect[5] = (int) (bbox.xMax * sin_a + bbox.yMax * cos_a);
1196 brect[6] = (int) (bbox.xMin * cos_a - bbox.yMax * sin_a);
[all …]
H A Dgd_interpolation.c2311 gdRect bbox; in gdTransformAffineGetImage() local
2324 *dst = gdImageCreateTrueColor(bbox.width, bbox.height); in gdTransformAffineGetImage()
2335 gdAffineTranslate(m, -bbox.x, -bbox.y); in gdTransformAffineGetImage()
2383 gdRect bbox; in gdTransformAffineCopy() local
2423 end_x = bbox.width + (int) fabs(bbox.x); in gdTransformAffineCopy()
2424 end_y = bbox.height + (int) fabs(bbox.y); in gdTransformAffineCopy()
2433 for (y = bbox.y; y <= end_y; y++) { in gdTransformAffineCopy()
2443 pt.y = y + 0.5 + bbox.y; in gdTransformAffineCopy()
2450 pt.x = x + 0.5 + bbox.x; in gdTransformAffineCopy()
2517 bbox->x = (int) min.x; in gdTransformAffineBoundingBox()
[all …]
H A Dgd.h884 int gdTransformAffineBoundingBox(gdRectPtr src, const double affine[6], gdRectPtr bbox);

Completed in 31 milliseconds