cvs: /php4/ext/gd gd.c
| From: | Egon Schmid | Date: | Wed, 24 Nov 1999 22:05:19 +0000 |
| Subject: | cvs: /php4/ext/gd gd.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-6869@lists.php.net to get a copy of this message | ||
eschmid Wed Nov 24 17:05:19 1999 EDT
Modified files:
/php4/ext/gd gd.c
Log:
I'm dreaming that someone else can format this when he/she is looking at it.
Index: php4/ext/gd/gd.c
diff -u php4/ext/gd/gd.c:1.20 php4/ext/gd/gd.c:1.21
--- php4/ext/gd/gd.c:1.20 Wed Nov 24 16:43:54 1999
+++ php4/ext/gd/gd.c Wed Nov 24 17:04:49 1999
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gd.c,v 1.20 1999/11/24 21:43:54 steffann Exp $ */
+/* $Id: gd.c,v 1.21 1999/11/24 22:04:49 eschmid Exp $ */
/* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
Cold Spring Harbor Labs. */
@@ -273,7 +273,7 @@
}
/* {{{ proto int imageloadfont(string filename)
-Load a new font */
+ Load a new font */
PHP_FUNCTION(imageloadfont) {
pval *file;
int hdr_size = sizeof(gdFont) - sizeof(char *);
@@ -355,7 +355,7 @@
/* }}} */
/* {{{ proto int imagecreate(int x_size, int y_size)
-Create a new image */
+ Create a new image */
PHP_FUNCTION(imagecreate)
{
pval *x_size, *y_size;
@@ -380,7 +380,7 @@
#ifdef HAVE_GD_PNG
/* {{{ proto int imagecreatefrompng(string filename)
-Create a new image from file or URL */
+ Create a new image from file or URL */
void php3_imagecreatefrompng (INTERNAL_FUNCTION_PARAMETERS) {
pval *file;
int ind;
@@ -414,7 +414,7 @@
/* }}} */
/* {{{ proto int imagepng(int im [, string filename])
-Output image to browser or file */
+ Output image to browser or file */
void php3_imagepng (INTERNAL_FUNCTION_PARAMETERS) {
pval *imgind, *file;
gdImagePtr im;
@@ -485,7 +485,7 @@
#ifdef HAVE_GD_GIF
/* {{{ proto int imagecreatefromgif(string filename)
-Create a new image from file or URL */
+ Create a new image from file or URL */
PHP_FUNCTION(imagecreatefromgif )
{
pval *file;
@@ -528,7 +528,7 @@
/* }}} */
/* {{{ proto int imagegif(int im [, string filename])
-Output image to browser or file */
+ Output image to browser or file */
PHP_FUNCTION(imagegif )
{
pval *imgind, *file;
@@ -610,7 +610,7 @@
#endif /* HAVE_GD_GIF */
/* {{{ proto int imagedestroy(int im)
-Destroy an image */
+ Destroy an image */
PHP_FUNCTION(imagedestroy)
{
pval *imgind;
@@ -628,7 +628,7 @@
/* }}} */
/* {{{ proto int imagecolorallocate(int im, int red, int green, int blue)
-Allocate a color for an image */
+ Allocate a color for an image */
PHP_FUNCTION(imagecolorallocate)
{
pval *imgind, *red, *green, *blue;
@@ -665,7 +665,7 @@
/* im, x, y */
/* {{{ proto int imagecolorat(int im, int x, int y)
-Get the index of the color of a pixel */
+ Get the index of the color of a pixel */
PHP_FUNCTION(imagecolorat)
{
pval *imgind, *x, *y;
@@ -702,7 +702,7 @@
/* }}} */
/* {{{ proto int imagecolorclosest(int im, int red, int green, int blue)
-Get the index of the closest color to the specified color */
+ Get the index of the closest color to the specified color */
PHP_FUNCTION(imagecolorclosest)
{
pval *imgind, *red, *green, *blue;
@@ -738,7 +738,7 @@
/* }}} */
/* {{{ proto int imagecolordeallocate(int im, int index)
-De-allocate a color for an image */
+ De-allocate a color for an image */
PHP_FUNCTION(imagecolordeallocate)
{
pval *imgind, *index;
@@ -773,7 +773,7 @@
/* }}} */
/* {{{ proto int imagecolorresolve(int im, int red, int green, int blue)
-Get the index of the specified color or its closest possible alternative */
+ Get the index of the specified color or its closest possible alternative */
PHP_FUNCTION(imagecolorresolve)
{
pval *imgind, *red, *green, *blue;
@@ -809,7 +809,7 @@
/* }}} */
/* {{{ proto int imagecolorexact(int im, int red, int green, int blue)
-Get the index of the specified color */
+ Get the index of the specified color */
PHP_FUNCTION(imagecolorexact)
{
pval *imgind, *red, *green, *blue;
@@ -845,7 +845,7 @@
/* }}} */
/* {{{ proto int imagecolorset(int im, int col, int red, int green, int blue)
-Set the color for the specified palette index */
+ Set the color for the specified palette index */
PHP_FUNCTION(imagecolorset)
{
pval *imgind, *color, *red, *green, *blue;
@@ -888,7 +888,7 @@
/* }}} */
/* {{{ proto array imagecolorsforindex(int im, int col)
-Get the colors for an index */
+ Get the colors for an index */
PHP_FUNCTION(imagecolorsforindex)
{
pval *imgind, *index;
@@ -927,7 +927,7 @@
/* }}} */
/* {{{ proto int imagesetpixel(int im, int x, int y, int col)
-Set a single pixel */
+ Set a single pixel */
PHP_FUNCTION(imagesetpixel)
{
pval *imarg, *xarg, *yarg, *colarg;
@@ -965,7 +965,7 @@
/* im, x1, y1, x2, y2, col */
/* {{{ proto int imageline(int im, int x1, int y1, int x2, int y2, int col)
-Draw a line */
+ Draw a line */
PHP_FUNCTION(imageline)
{
pval *IM, *COL, *X1, *Y1, *X2, *Y2;
@@ -1005,7 +1005,7 @@
/* }}} */
/* {{{ proto int imagedashedline(int im, int x1, int y1, int x2, int y2, int col)
-Draw a dashed line */
+ Draw a dashed line */
PHP_FUNCTION(imagedashedline)
{
pval *IM, *COL, *X1, *Y1, *X2, *Y2;
@@ -1045,7 +1045,7 @@
/* im, x1, y1, x2, y2, col */
/* {{{ proto int imagerectangle(int im, int x1, int y1, int x2, int y2, int col)
-Draw a rectangle */
+ Draw a rectangle */
PHP_FUNCTION(imagerectangle)
{
pval *IM, *COL, *X1, *Y1, *X2, *Y2;
@@ -1086,7 +1086,7 @@
/* im, x1, y1, x2, y2, col */
/* {{{ proto int imagefilledrectangle(int im, int x1, int y1, int x2, int y2, int col)
-Draw a filled rectangle */
+ Draw a filled rectangle */
PHP_FUNCTION(imagefilledrectangle)
{
pval *IM, *COL, *X1, *Y1, *X2, *Y2;
@@ -1126,7 +1126,7 @@
/* }}} */
/* {{{ proto int imagearc(int im, int cx, int cy, int w, int h, int s, int e, int col)
-Draw a partial ellipse */
+ Draw a partial ellipse */
PHP_FUNCTION(imagearc)
{
pval *COL, *E, *ST, *H, *W, *CY, *CX, *IM;
@@ -1178,7 +1178,7 @@
/* im, x, y, border, col */
/* {{{ proto int imagefilltoborder(int im, int x, int y, int border, int col)
-Flood fill to specific color */
+ Flood fill to specific color */
PHP_FUNCTION(imagefilltoborder)
{
pval *IM, *X, *Y, *BORDER, *COL;
@@ -1217,7 +1217,7 @@
/* im, x, y, col */
/* {{{ proto int imagefill(int im, int x, int y, int col)
-Flood fill */
+ Flood fill */
PHP_FUNCTION(imagefill)
{
pval *IM, *X, *Y, *COL;
@@ -1253,7 +1253,7 @@
/* }}} */
/* {{{ proto int imagecolorstotal(int im)
-Find out the number of colors in an image's palette */
+ Find out the number of colors in an image's palette */
PHP_FUNCTION(imagecolorstotal)
{
pval *IM;
@@ -1278,7 +1278,7 @@
/* im, col */
/* {{{ proto int imagecolortransparent(int im [, int col])
-Define a color as transparent */
+ Define a color as transparent */
PHP_FUNCTION(imagecolortransparent)
{
pval *IM, *COL = NULL;
@@ -1321,7 +1321,7 @@
/* im, interlace */
/* {{{ proto int imageinterlace(int im [, int interlace])
-Enable or disable interlace */
+ Enable or disable interlace */
PHP_FUNCTION(imageinterlace)
{
pval *IM, *INT = NULL;
@@ -1450,7 +1450,7 @@
/* {{{ proto int imagepolygon(int im, array point, int num_points, int col)
-Draw a polygon */
+ Draw a polygon */
PHP_FUNCTION(imagepolygon)
{
_php3_imagepolygon(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
@@ -1458,7 +1458,7 @@
/* }}} */
/* {{{ proto int imagefilledpolygon(int im, array point, int num_points, int col)
-Draw a filled polygon */
+ Draw a filled polygon */
PHP_FUNCTION(imagefilledpolygon)
{
_php3_imagepolygon(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
@@ -1523,7 +1523,7 @@
/* {{{ proto int imagefontwidth(int font)
-Get font width */
+ Get font width */
PHP_FUNCTION(imagefontwidth)
{
_php3_imagefontsize(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
@@ -1643,35 +1643,35 @@
}
/* {{{ proto int imagechar(int im, int font, int x, int y, string c, int col)
-Draw a character */
+ Draw a character */
PHP_FUNCTION(imagechar) {
_php3_imagechar(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
}
/* }}} */
/* {{{ proto int imagecharup(int im, int font, int x, int y, string c, int col)
-Draw a character rotated 90 degrees counter-clockwise */
+ Draw a character rotated 90 degrees counter-clockwise */
PHP_FUNCTION(imagecharup) {
_php3_imagechar(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
}
/* }}} */
/* {{{ proto int imagestring(int im, int font, int x, int y, string str, int col)
-Draw a string horizontally */
+ Draw a string horizontally */
PHP_FUNCTION(imagestring) {
_php3_imagechar(INTERNAL_FUNCTION_PARAM_PASSTHRU, 2);
}
/* }}} */
/* {{{ proto int imagestringup(int im, int font, int x, int y, string str, int col)
-Draw a string vertically - rotated 90 degrees counter-clockwise */
+ Draw a string vertically - rotated 90 degrees counter-clockwise */
PHP_FUNCTION(imagestringup) {
_php3_imagechar(INTERNAL_FUNCTION_PARAM_PASSTHRU, 3);
}
/* }}} */
/* {{{ proto int imagecopy(int dst_im, int src_im, int dstX, int dstY, int srcX, int srcY, int
srcW, int srcH)
-Copy part of an image */
+ Copy part of an image */
PHP_FUNCTION(imagecopy)
{
pval *SIM, *DIM, *SX, *SY, *SW, *SH, *DX, *DY;
@@ -1721,7 +1721,7 @@
/* }}} */
/* {{{ proto int imagecopyresized(int dst_im, int src_im, int dstX, int dstY, int srcX, int srcY,
int dstW, int dstH, int srcW, int srcH);
-Copy and resize part of an image */
+ Copy and resize part of an image */
PHP_FUNCTION(imagecopyresized)
{
pval *SIM, *DIM, *SX, *SY, *SW, *SH, *DX, *DY, *DW, *DH;
@@ -1776,7 +1776,7 @@
/* }}} */
/* {{{ proto int imagesx(int im)
-Get image width */
+ Get image width */
PHP_FUNCTION(imagesx)
{
pval *IM;
@@ -1827,7 +1827,7 @@
#define TTFTEXT_BBOX 1
/* {{{ proto array imagettfbbox(int size, int angle, string font_file, string text)
-Give the bounding box of a text using TrueType fonts */
+ Give the bounding box of a text using TrueType fonts */
PHP_FUNCTION(imagettfbbox)
{
php3_imagettftext_common(INTERNAL_FUNCTION_PARAM_PASSTHRU, TTFTEXT_BBOX);
@@ -1835,7 +1835,7 @@
/* }}} */
/* {{{ proto array imagettftext(int im, int size, int angle, int x, int y, int col, string
font_file, string text)
-Write text to the image using a TrueType font */
+ Write text to the image using a TrueType font */
PHP_FUNCTION(imagettftext)
{
php3_imagettftext_common(INTERNAL_FUNCTION_PARAM_PASSTHRU, TTFTEXT_DRAW);