final protected function buildImage($image) {
        $class = get_class($this);

        if ($image instanceof $class) {
            $width = $image->width;
            $height = $image->height;
            $img = $image->image;

        } elseif (is_array($image)) {
            list($key, $width) = each($image);
            list($key, $height) = each($image);
            $img = $this->getBlankImage($width, $height);

        } else
            $img = $this->getImage($image, $width, $height);

        return ($img !== false)
            ? array($img, $width, $height)
            : false;
    }
final protected function buildImage($image) {
        $class = get_class($this);

        if ($image instanceof $class) {
            $width = $image->width;
            $height = $image->height;
            $img = $image->image;

        } elseif (is_array($image)) {
            list($key, $width) = each($image);
            list($key, $height) = each($image);
            $img = $this->getBlankImage($width, $height);

        } else
            $img = $this->getImage($image, $width, $height);

        return ($img !== false)
            ? array($img, $width, $height)
            : false;
    }
final protected function buildImage ( $ image ) { $ class = get_class ( $ this ) ; if ( $ image instanceof $ class ) { $ width = $ image -> width ; $ height = $ image -> height ; $ img = $ image -> image ; } elseif ( is_array ( $ image ) ) { list ( $ key , $ width ) = each ( $ image ) ; list ( $ key , $ height ) = each ( $ image ) ; $ img = $ this -> getBlankImage ( $ width , $ height ) ; } else $ img = $ this -> getImage ( $ image , $ width , $ height ) ; return ( $ img !== false ) ? array ( $ img , $ width , $ height ) : false ; }
Returns an array. Element 0 - image resource. Element 1 - width. Element 2 - height.
Returns FALSE on failure.
@param mixed $image
@return array
Returns an array . Element 0 - image resource . Element 1 - width . Element 2 - height . Returns FALSE on failure .