public function addFrame(Frame $frame)
    {
        $tmpFrame = clone $frame;
        $tmpFrame->resize($this->width, $this->height);
        ob_start();
        imagegif($tmpFrame->toGDImage());
        $this->frames[] = ob_get_clean();
        $tmpFrame = null;
    }
public function addFrame(Frame $frame)
    {
        $tmpFrame = clone $frame;
        $tmpFrame->resize($this->width, $this->height);
        ob_start();
        imagegif($tmpFrame->toGDImage());
        $this->frames[] = ob_get_clean();
        $tmpFrame = null;
    }
public function addFrame ( Frame $ frame ) { $ tmpFrame = clone $ frame ; $ tmpFrame -> resize ( $ this -> width , $ this -> height ) ; ob_start ( ) ; imagegif ( $ tmpFrame -> toGDImage ( ) ) ; $ this -> frames [ ] = ob_get_clean ( ) ; $ tmpFrame = null ; }
Add a frame to the end of the animated gif.

@param Frame $frame Frame to add.
Add a frame to the end of the animated gif .