Home
last modified time | relevance | path

Searched refs:image (Results 1 – 25 of 256) sorted by relevance

1234567891011

/PHP-5.3/ext/gd/libgd/
H A Dgdxpm.c21 XpmImage image; in gdImageCreateFromXpm() local
35 if (!(im = gdImageCreate(image.width, image.height))) { in gdImageCreateFromXpm()
39 number = image.ncolors; in gdImageCreateFromXpm()
45 buf[0] = image.colorTable[i].c_color[1]; in gdImageCreateFromXpm()
48 buf[0] = image.colorTable[i].c_color[2]; in gdImageCreateFromXpm()
51 buf[0] = image.colorTable[i].c_color[3]; in gdImageCreateFromXpm()
57 buf[0] = image.colorTable[i].c_color[1]; in gdImageCreateFromXpm()
120 pointer = (int *) image.data; in gdImageCreateFromXpm()
121 for (i = 0; i < image.height; i++) { in gdImageCreateFromXpm()
122 for (j = 0; j < image.width; j++) { in gdImageCreateFromXpm()
[all …]
/PHP-5.3/ext/gd/tests/
H A Dbug40764.phpt9 $image=imagecreatetruecolor(400, 400);
11 $black = imagecolorallocate($image, 0, 0, 0);
14 imagefill($image, 0, 0, $white);
15 imagesetthickness($image, 10);
19 imageline($image, 0, 0, 392, 392, $black);
21 imagesetthickness($image, 1);
23 imageline($image, 200, 0, 200, 400, $red);
24 imageline($image, 0, 200, 400, 200, $red);
25 imageline($image, 0, 0, 392, 392, $red);
26 print_r(imagecolorat($image, 195, 0));
[all …]
H A Dimagefilltoborder_basic.phpt12 // Create a image
13 $image = imagecreatetruecolor( 100, 100 );
16 imagefilledrectangle( $image, 0, 0, 100, 100, imagecolorallocate( $image, 255, 255, 255 ) );
19 imageellipse( $image, 50, 50, 50, 50, imagecolorallocate( $image, 0, 0, 0 ) );
22 imagefilltoborder( $image, 50, 50, imagecolorallocate( $image, 0, 0, 0 ), imagecolorallocate( $imag…
25 imagepng( $image, null, 9 );
H A Dimagepolygon_basic.phpt13 * Source code: ext/standard/image.c
22 // create a blank image
23 $image = imagecreatetruecolor(400, 300);
26 $bg = imagecolorallocate($image, 0, 0, 0);
32 imagepolygon($image, array (
41 imagepng($image, $dest);
43 $col1 = imagecolorat($image, 100, 200);
44 $col2 = imagecolorat($image, 100, 100);
45 $color1 = imagecolorsforindex($image, $col1);
46 $color2 = imagecolorsforindex($image, $col2);
[all …]
H A Dimagedashedline_basic.phpt14 * Source code: ext/standard/image.c
23 // create a blank image
24 $image = imagecreatetruecolor(250, 250);
27 $bg = imagecolorallocate($image, 0, 0, 0);
30 $col_line = imagecolorallocate($image, 255, 0, 0);
37 imagepng($image, $dest);
40 $col1 = imagecolorat($image, 100, 230);
42 $col2 = imagecolorat($image, 5, 5);
44 $color1 = imagecolorsforindex($image, $col1);
45 $color2 = imagecolorsforindex($image, $col2);
[all …]
H A Dimagefilltoborder_error2.phpt12 // Create a image
13 $image = imagecreatetruecolor( 100, 100 );
16 imagefilledrectangle( $image, 0, 0, 100, 100, imagecolorallocate( $image, 255, 255, 255 ) );
19 imageellipse( $image, 50, 50, 50, 50, imagecolorallocate( $image, 0, 0, 0 ) );
22 imagefilltoborder( $image, 'wrong param', 50, imagecolorallocate( $image, 0, 0, 0 ), imagecolorallo…
H A Dimagefilltoborder_error3.phpt12 // Create a image
13 $image = imagecreatetruecolor( 100, 100 );
16 imagefilledrectangle( $image, 0, 0, 100, 100, imagecolorallocate( $image, 255, 255, 255 ) );
19 imageellipse( $image, 50, 50, 50, 50, imagecolorallocate( $image, 0, 0, 0 ) );
22 imagefilltoborder( $image, 50, 'wrong param', imagecolorallocate( $image, 0, 0, 0 ), imagecolorallo…
H A Dimagegammacorrect_variation1.phpt2 Testing imagegammacorrect() of GD library with non TrueColor image
12 $image = imagecreate(150, 150);
14 $grey = imagecolorallocate($image,6,6,6);
15 $gray = imagecolorallocate($image,15,15,15);
17 $half = imagefilledarc ( $image, 75, 75, 70, 70, 0, 180, $grey, IMG_ARC_PIE );
18 $half2 = imagefilledarc ( $image, 75, 75, 70, 70, 0, -180, $gray, IMG_ARC_PIE );
20 $gamma = imagegammacorrect($image, 1, 5);
24 imagepng($image, null, 9);
H A Dimagefilltoborder_error1.phpt12 // Create a image
13 $image = imagecreatetruecolor( 100, 100 );
16 imagefilledrectangle( $image, 0, 0, 100, 100, imagecolorallocate( $image, 255, 255, 255 ) );
19 imageellipse( $image, 50, 50, 50, 50, imagecolorallocate( $image, 0, 0, 0 ) );
22 …toborder( 'wrong param', 50, 50, imagecolorallocate( $image, 0, 0, 0 ), imagecolorallocate( $image
H A Dimagefilltoborder_error4.phpt12 // Create a image
13 $image = imagecreatetruecolor( 100, 100 );
16 imagefilledrectangle( $image, 0, 0, 100, 100, imagecolorallocate( $image, 255, 255, 255 ) );
19 imageellipse( $image, 50, 50, 50, 50, imagecolorallocate( $image, 0, 0, 0 ) );
22 imagefilltoborder( $image, 50, 50, 'wrong param', imagecolorallocate( $image, 255, 0, 0 ) );
H A Dimagefilltoborder_error5.phpt12 // Create a image
13 $image = imagecreatetruecolor( 100, 100 );
16 imagefilledrectangle( $image, 0, 0, 100, 100, imagecolorallocate( $image, 255, 255, 255 ) );
19 imageellipse( $image, 50, 50, 50, 50, imagecolorallocate( $image, 0, 0, 0 ) );
22 imagefilltoborder( $image, 50, 50, imagecolorallocate( $image, 0, 0, 0 ), 'wrong param' );
H A Dimagecreatetruecolor_error2.phpt12 $image = imagecreatetruecolor(-1, 30);
13 $image = imagecreatetruecolor(30, -1);
14 $image = imagecreatetruecolor(999999999999999999999999999, 30);
15 $image = imagecreatetruecolor(30, 999999999999999999999999999);
18 Warning: imagecreatetruecolor(): Invalid image dimensions in %s on line %d
20 Warning: imagecreatetruecolor(): Invalid image dimensions in %s on line %d
22 Warning: imagecreatetruecolor(): Invalid image dimensions in %s on line %d
24 Warning: imagecreatetruecolor(): Invalid image dimensions in %s on line %d
H A Dimagefilltoborder_error6.phpt12 // Create a image
13 $image = imagecreatetruecolor( 100, 100 );
16 imagefilledrectangle( $image, 0, 0, 100, 100, imagecolorallocate( $image, 255, 255, 255 ) );
19 imageellipse( $image, 50, 50, 50, 50, imagecolorallocate( $image, 0, 0, 0 ) );
23 …illtoborder( $image_foo, 50, 50, imagecolorallocate( $image, 0, 0, 0 ), imagecolorallocate( $image
H A Dimagegammacorrect_basic.phpt12 $image = imagecreatetruecolor(150, 150);
14 $grey = imagecolorallocate($image,6,6,6);
15 $gray = imagecolorallocate($image,15,15,15);
17 $half = imagefilledarc ( $image, 75, 75, 70, 70, 0, 180, $grey, IMG_ARC_PIE );
18 $half2 = imagefilledarc ( $image, 75, 75, 70, 70, 0, -180, $gray, IMG_ARC_PIE );
20 $gamma = imagegammacorrect($image, 1, 5);
24 imagepng($image, null, 9);
H A Dimagesetthickness_basic.phpt12 // Create a 200x100 image
13 $image = imagecreatetruecolor(200, 100);
14 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
15 $black = imagecolorallocate($image, 0x00, 0x00, 0x00);
18 imagefilledrectangle($image, 0, 0, 299, 99, $white);
21 imagesetthickness($image, 5);
24 imagerectangle($image, 14, 14, 185, 85, $black);
27 imagepng($image, null, 9);
H A Dimagetruecolortopalette_basic.phpt12 $image = imagecreatetruecolor(150, 150);
14 $a = imagecolorallocate($image,255,0,255);
15 $b = imagecolorallocate($image,0,255,255);
17 $half = imagefilledarc ( $image, 75, 75, 70, 70, 0, 180, $a, IMG_ARC_PIE );
18 $half2 = imagefilledarc ( $image, 75, 55, 80, 70, 0, -180, $b, IMG_ARC_PIE );
20 var_dump(imagetruecolortopalette($image, true, 2));
23 imagepng($image, null, 9);
H A Dimagefilltoborder_error7.phpt12 // Create a image
13 $image = imagecreatetruecolor( 100, 100 );
16 imagefilledrectangle( $image, 0, 0, 100, 100, imagecolorallocate( $image, 255, 255, 255 ) );
19 imageellipse( $image, 50, 50, 50, 50, imagecolorallocate( $image, 0, 0, 0 ) );
22 imagefilltoborder( $image, 50, 50 );
H A Dbug22544.phpt13 $image = imageCreateTruecolor(640, 100);
14 $transparent = imageColorAllocate($image, 0, 0, 0);
15 $red = imageColorAllocate($image, 255, 50, 50);
16 imageColorTransparent($image, $transparent);
17 imageFilledRectangle($image, 0, 0, 640-1, 100-1, $transparent);
18 imagePng($image, $dest);
H A Dimagerectangle_basic.phpt12 // Create a image
13 $image = imagecreatetruecolor( 100, 100 );
16 imagerectangle( $image, 0, 0, 50, 50, imagecolorallocate($image, 255, 255, 255) );
19 imagepng( $image, null, 9 );
H A Dimagecolorstotal_basic.phpt15 /* Prototype : int imagecolorstotal ( resource $image )
16 * Description: Find out the number of colors in an image's palette
22 // Get an image
26 echo 'Total colors in image: ' . imagecolorstotal($im);
28 // Free image
35 Total colors in image: 128
H A Dimagefilledpolygon_basic.phpt11 /* Prototype : bool imagefilledpolygon ( resource $image , array $points , int $num_points , i…
13 * Source code: ext/standard/image.c
30 // create a blank image
31 $image = imagecreatetruecolor(250, 250);
34 $bg = imagecolorallocate($image, 0, 0, 0);
37 $col_poly = imagecolorallocate($image, 0, 255, 0);
40 imagefilledpolygon($image, $points, count($points)/2, $col_poly);
43 imagepng($image, $dest);
60 imagedestroy($image);
/PHP-5.3/ext/standard/tests/image/
H A Dgetimagesize_basic.phpt7 * Source code: ext/standard/image.c
52 -- GIF image file (200x100.gif) --
67 string(9) "image/gif"
87 string(10) "image/jpeg"
94 -- PNG image file (200x100.png) --
107 string(9) "image/png"
112 -- SWF image file (200x100.swf) --
141 string(14) "image/x-ms-bmp"
157 string(10) "image/tiff"
197 string(9) "image/jp2"
[all …]
H A Dimage_type_to_mime_type_variation3.phpt9 * Source code: ext/standard/image.c
27 string\(9\) "image\/gif"
30 string\(10\) "image\/jpeg"
33 string\(9\) "image\/png"
39 string\(9\) "image\/psd"
42 string\(14\) "image\/x-ms-bmp"
45 string\(10\) "image\/tiff"
48 string\(10\) "image\/tiff"
54 string\(9\) "image\/jp2"
66 string\(9\) "image\/iff"
[all …]
H A Dimage_type_to_mime_type_basic.phpt46 string(9) "image/gif"
47 string(10) "image/jpeg"
48 string(9) "image/png"
50 string(9) "image/psd"
51 string(14) "image/x-ms-bmp"
52 string(10) "image/tiff"
53 string(10) "image/tiff"
55 string(9) "image/jp2"
58 string(9) "image/iff"
59 string(18) "image/vnd.wap.wbmp"
[all …]
H A Dimage_type_to_mime_type.phpt30 string(14) "image/x-ms-bmp"
32 string(9) "image/jp2"
36 string(10) "image/jpeg"
38 string(9) "image/gif"
40 string(9) "image/gif"
42 string(9) "image/iff"
44 string(9) "image/png"
46 string(9) "image/psd"
50 string(10) "image/tiff"

Completed in 43 milliseconds

1234567891011