| CutePop |
| CutePop_GifDataStream CutePop::factory ( void ) |
Returns an empty GIF data stream object. |
| CutePop_GifDataStream CutePop::fromFile ( string $filename ) |
Creates a GIF data stream object from a GIF file. |
|
| CutePop_GifDataStream |
| int CutePop_GifDataStream::getWidth ( void ) |
Returns the logical screen width for the data stream. |
| void CutePop_GifDataStream::setWidth ( int $width ) |
Sets the logical screen width for the data stream. |
| int CutePop_GifDataStream::getHeight ( void ) |
Returns the logical screen height for the data stream. |
| void CutePop_GifDataStream::setHeight ( int $height ) |
Sets the logical screen height for the data stream. |
| CutePop_ColorTable CutePop_GifDataStream::getColorTable ( void ) |
Returns the global color table object for the GIF stream. |
| void CutePop_GifDataStream::importColorTable ( CutePop_ColorTable $colorTable ) |
Import a color table object for use as global color table. |
| mixed CutePop_GifDataStream::getLoopCount ( void ) |
Returns NULL if the GIF is not animated. Otherwise returns amount of loops (0-65535, 0 = infinite). |
| void CutePop_GifDataStream::setLoopCount ( mixed $count ) |
Sets amount of loops for animated GIFs. See above for argument values. |
| int CutePop_GifDataStream::getImageCount ( void ) |
Return the number of images in the data stream. |
| CutePop_GifImage CutePop_GifDataStream::getImage ( int $index ) |
Return an image from the data stream. |
| void CutePop_GifDataStream::appendImage ( CutePop_GifImage $image ) |
Add an image to the data stream. |
| string CutePop_GifDataStream::render ( void ) |
Renders the data stream and returns the result as a string. |
| void CutePop_GifDataStream::saveAs ( string $filename [, bool $overwrite ] ) |
Renders the data stream and writes the result to a file. |
|
| CutePop_GifImage |
| int CutePop_GifImage::getDelayTime ( void ) |
Returns the duration of the image in 1/100ths of a second (animated GIFs only). |
| void CutePop_GifImage::setDelayTime ( int $delayTime ) |
Sets the duration of the image (animated GIFs only). |
| mixed CutePop_GifImage::getTransparentColorIndex ( void ) |
Returns the palette index for the transparent color or NULL if none is set. |
| void CutePop_GifImage::setTransparentColorIndex ( int $index ) |
Sets the palette index for the transparent color. |
| CutePop_ColorTable CutePop_GifImage::getColorTable ( void ) |
Returns the global color table object for the GIF stream. |
| void CutePop_GifImage::importColorTable ( CutePop_ColorTable $colorTable ) |
Import a color table object for use as global color table. |
|
| CutePop_ColorTable |
| int CutePop_ColorTable::getSize ( void ) |
Returns the color table size. |
| array CutePop_ColorTable::getColor ( int $index ) |
Returns the color at the specified index. Array format is array( 0 => $r, 1 => $g, 2 => $b ). |
| void CutePop_ColorTable::replaceColor ( int $index, int $r, int $g, int $b ) |
Replaces the color at the specified index. |
| void CutePop_ColorTable::replaceColor ( int $index, array $color ) |
See above. $color like array in getColor. |