Home
last modified time | relevance | path

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

/PHP-7.4/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 Dbug48801-mb.phpt13 $bbox = imageftbbox(50, 0, $font, "image");
14 echo '(' . $bbox[0] . ', ' . $bbox[1] . ")\n";
15 echo '(' . $bbox[2] . ', ' . $bbox[3] . ")\n";
16 echo '(' . $bbox[4] . ', ' . $bbox[5] . ")\n";
17 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 Dbug48732-mb.phpt16 $bbox = imagettftext($g, 12, 0, 0, 20, $black, $font, "ABCEDFGHIJKLMN\nopqrstu\n");
18 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-7.4/ext/gd/libgd/
H A Dgdft.c819 FT_BBox bbox, glyph_bbox; local
917 bbox.xMin = bbox.xMax = bbox.yMin = bbox.yMax = 0;
1115 bbox.xMin = glyph_bbox.xMin;
1196 brect[0] = (int) (bbox.xMin * cos_a - bbox.yMin * sin_a);
1197 brect[1] = (int) (bbox.xMin * sin_a + bbox.yMin * cos_a);
1198 brect[2] = (int) (bbox.xMax * cos_a - bbox.yMin * sin_a);
1199 brect[3] = (int) (bbox.xMax * sin_a + bbox.yMin * cos_a);
1200 brect[4] = (int) (bbox.xMax * cos_a - bbox.yMax * sin_a);
1201 brect[5] = (int) (bbox.xMax * sin_a + bbox.yMax * cos_a);
1202 brect[6] = (int) (bbox.xMin * cos_a - bbox.yMax * sin_a);
[all …]
H A Dgd_interpolation.c1627 gdRect bbox; in gdImageRotateNearestNeighbour() local
1685 gdRect bbox; in gdImageRotateGeneric() local
1752 gdRect bbox; in gdImageRotateBilinear() local
1871 gdRect bbox; in gdImageRotateBicubicFixed() local
2235 gdRect bbox; in gdTransformAffineGetImage() local
2248 *dst = gdImageCreateTrueColor(bbox.width, bbox.height); in gdTransformAffineGetImage()
2259 gdAffineTranslate(m, -bbox.x, -bbox.y); in gdTransformAffineGetImage()
2307 gdRect bbox; in gdTransformAffineCopy() local
2345 end_x = bbox.width + abs(bbox.x); in gdTransformAffineCopy()
2346 end_y = bbox.height + abs(bbox.y); in gdTransformAffineCopy()
[all …]
H A Dgd.h901 int gdTransformAffineBoundingBox(gdRectPtr src, const double affine[6], gdRectPtr bbox);

Completed in 32 milliseconds