--- /dev/null Sat Mar 24 06:37:44 2001 +++ phpdoc/en/reference/image/functions/imagegifanimbegin.xml Thu Jun 19 14:59:21 2003 @@ -0,0 +1,102 @@ + + + + + imagegifanimbegin + Output the beginning of GIF animation to browser or file + + + Description + + intimagegifanimbegin + resourceimage + stringfilename + intcolormapflag + intloopcount + + + imagegifanimbegin creates the headers of an + animated GIF89a file. The image + image is used to fill in animation size, + color resolution, and global color map. The image itself is not + used. Global color map is only included if + colormapflag is 1. + + + If loopcount is given, and it is >= 0, + the NETSCAPE2.0 extension is included. 0 means looping forever. + + + After this function, imagegifanimadd + should be called for each frame of the animation. When all + frames have been added, imagegifanimend + must be called to complete the file. + + + The filename argument is optional, and if left off, the raw image + stream will be output directly. By sending an image/gif + content-type using header, you can create a + PHP script that outputs GIF animations directly. + + + +]]> + + + + + See also imagegifanimadd, + imagegifanimend. + + + + + --- /dev/null Sat Mar 24 06:37:44 2001 +++ phpdoc/en/reference/image/functions/imagegifanimadd.xml Thu Jun 19 15:11:08 2003 @@ -0,0 +1,84 @@ + + + + + imagegifanimadd + Output one image frame of GIF animation to browser or file + + + Description + + intimagegifanimadd + resourceimage + stringfilename + intcolormapflag + intleftoffset + inttopoffset + intdelay + intdisposal + + + imagegifanimadd appends one image frame to + an animated GIF89a file that is under + construction. imagegifanimbegin must first + be called to write the necessary headers for the + GIF89a. After all frames have been added with + imagegifanimadd, + imagegifanimend must be called to write the + final section of the file format. + + + Local color map for the image frame is only included if + colormapflag is 1. Usually you want to + use local color map in each frame, because otherwise you should be + certain that the color maps are compatible in each input image. + It is possible to optimize the color maps to be compatible, but + usually this does not result in good performance. + + + Parameters leftoffset and + topoffset can be used to place the image + top left corner in the animation in some other location than + (0,0). This is useful when optimizing the animation. + + + Parameter delay gives the frame + replacement delay in 1/100s units. Maximum delay is 655.35 + seconds. Parameter disposal defines the + GIF89a disposal method. Unless optimizing + the image with offsets and transparency, the displosal method + should be 2 (replace). + + + The filename argument is optional, and if left off, the raw image + stream will be output directly. By sending an image/gif + content-type using header, you can create a + PHP script that outputs GIF animations directly. + + + See also imagegifanimbegin, + imagegifanimend. + + + + + --- /dev/null Sat Mar 24 06:37:44 2001 +++ phpdoc/en/reference/image/functions/imagegifanimend.xml Thu Jun 19 14:28:35 2003 @@ -0,0 +1,61 @@ + + + + + imagegifanimend + Output GIF animation end mark + + + Description + + intimagegif + stringfilename + + + + imagegifanimend is the last command used in + the sequence of creating an animated GIF + image. In practice it writes a single character ';' to the + output or to the file, so these examples are equivalent: + + + + + + + + + + + + + See also imagegifanimbegin, + imagegifanimadd + + + + +