/PHP-5.4/ext/gd/tests/ |
H A D | imagefilledpolygon_basic.phpt | 11 /* 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);
|
H A D | imageconvolution_basic.phpt | 12 $image = imagecreatetruecolor(180, 30); 14 // Writes the text and apply a gaussian blur on the image 15 imagestring($image, 5, 10, 8, 'Gaussian Blur Text', 0x00ff00); 23 imageconvolution($image, $gaussian, 16, 0); 26 imagepng($image, null, 9);
|
H A D | imagesetthickness_error2.phpt | 12 $image = imagecreatetruecolor(200, 100); 14 imagesetthickness($image, 's'); 15 imagesetthickness($image, array()); 16 imagesetthickness($image, $image);
|
H A D | imagechar_basic.phpt | 12 $image = imagecreatetruecolor(180, 30); 13 $white = imagecolorallocate($image, 255,255,255); 15 $result = imagechar($image, 1, 5, 5, 'C', $white); 18 imagepng($image, null, 9);
|
H A D | imagecharup_basic.phpt | 12 $image = imagecreatetruecolor(180, 30); 13 $white = imagecolorallocate($image, 255,255,255); 15 $result = imagecharup($image, 1, 5, 5, 'C', $white); 18 imagepng($image, null, 9);
|
H A D | imagestring_basic.phpt | 12 $image = imagecreatetruecolor(180, 30); 13 $white = imagecolorallocate($image, 255,255,255); 15 $result = imagestring($image, 1, 5, 5, 'String Text', $white); 18 imagepng($image, null, 9);
|
H A D | imagestringup_basic.phpt | 12 $image = imagecreatetruecolor(180, 30); 13 $white = imagecolorallocate($image, 255,255,255); 15 $result = imagestringup($image, 1, 5, 25, 'Str', $white); 18 imagepng($image, null, 9);
|
H A D | imageellipse_basic.phpt | 13 // Create a image 14 $image = imagecreatetruecolor(400, 300); 17 imageellipse($image, 200, 150, 300, 200, 16777215); 20 imagepng($image, null, 9);
|
H A D | imagearc_basic.phpt | 13 $image = imagecreatetruecolor(100, 100); 15 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF); 18 imagearc($image, 50, 50, 30, 30, 0, 180, $white); 21 imagepng($image);
|
H A D | imagerectangle_error3.phpt | 12 // Create a image 13 $image = imagecreatetruecolor( 100, 100 ); 16 imagerectangle( $image, 'wrong param', 0, 50, 50, imagecolorallocate($image, 255, 255, 255) );
|
H A D | imagerectangle_error4.phpt | 12 // Create a image 13 $image = imagecreatetruecolor( 100, 100 ); 16 imagerectangle( $image, 0, 'wrong param', 50, 50, imagecolorallocate($image, 255, 255, 255) );
|
H A D | imagerectangle_error5.phpt | 12 // Create a image 13 $image = imagecreatetruecolor( 100, 100 ); 16 imagerectangle( $image, 0, 0, 'wrong param', 50, imagecolorallocate($image, 255, 255, 255) );
|
H A D | imagerectangle_error6.phpt | 12 // Create a image 13 $image = imagecreatetruecolor( 100, 100 ); 16 imagerectangle( $image, 0, 0, 50, 'wrong param', imagecolorallocate($image, 255, 255, 255) );
|
H A D | imagecolordeallocate_error4.phpt | 12 $image = imagecreate(180, 30); 13 $white = imagecolorallocate($image, 255, 255, 255); 15 $totalColors = imagecolorstotal($image); 17 $result = imagecolordeallocate($image, -1.0);
|
H A D | imagearc_variation1.phpt | 13 $image = imagecreatetruecolor(100, 100); 15 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF); 18 imagearc($image, 50, 50, 30, 30, 0, -90, $white); 21 imagepng($image);
|
H A D | imagearc_variation2.phpt | 13 $image = imagecreatetruecolor(100, 100); 15 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF); 18 imagearc($image, 50, 50, 30, 30, -90, 0, $white); 21 imagepng($image);
|
H A D | imageinterlace_variation2.phpt | 13 $image = imagecreatetruecolor(100, 100); 16 imageinterlace($image, 1); 19 var_dump(imageinterlace($image, 0)); 20 var_dump(imageinterlace($image));
|
H A D | imagecolordeallocate_error3.phpt | 12 $image = imagecreate(180, 30); 13 $white = imagecolorallocate($image, 255, 255, 255); 15 $totalColors = imagecolorstotal($image); 17 $result = imagecolordeallocate($image, $totalColors + 100);
|
H A D | imagefilledarc_basic.phpt | 13 $image = imagecreatetruecolor(100, 100); 15 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF); 18 imagefilledarc($image, 50, 50, 30, 30, 0, 90, $white, IMG_ARC_PIE); 21 imagepng($image);
|
H A D | imagefilledarc_variation1.phpt | 13 $image = imagecreatetruecolor(100, 100); 15 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF); 18 imagefilledarc($image, 50, 50, 30, 30, 0, -25, $white, IMG_ARC_PIE); 21 imagepng($image);
|
H A D | imagefilledarc_variation2.phpt | 13 $image = imagecreatetruecolor(100, 100); 15 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF); 18 imagefilledarc($image, 50, 50, 30, 30, -25, 25, $white, IMG_ARC_PIE); 21 imagepng($image);
|
H A D | imagetruecolortopalette_error3.phpt | 12 $image = imagecreatetruecolor(50, 50); 15 imagetruecolortopalette($image, true, 'string'); 16 imagetruecolortopalette($image, true, $resource); 17 imagetruecolortopalette($image, true, array()); 18 imagetruecolortopalette($image, true, null);
|
H A D | imagearc_error1.phpt | 13 $image = imagecreatetruecolor(100, 100); 15 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF); 18 imagearc($image, 50, 50, 30, 30, 0, 180); 21 imagepng($image);
|
H A D | imageconvolution_error1.phpt | 12 $image = imagecreatetruecolor(180, 30); 14 // Writes the text and apply a gaussian blur on the image 15 imagestring($image, 5, 10, 8, 'Gaussian Blur Text', 0x00ff00); 23 var_dump(imageconvolution($image, $gaussian, 16));
|
/PHP-5.4/ext/standard/tests/image/ |
H A D | image_type_to_mime_type_variation2.phpt | 6 …* Description: Get Mime-Type for image-type returned by getimagesize, exif_read_data, exif_thumbna… 7 * Source code: ext/standard/image.c 49 string(9) "image/gif" 58 string(10) "image/jpeg" 61 string(10) "image/tiff" 73 string(9) "image/gif"
|