/** * Create * * Method used as a factory for rectangle images. * Offers a quick way to send parameters and return * an image resource for output. * * @static * @access public * @param array $params Associative array of custom parameters: * - (See constructor docs for accepted values) * @return image resource of rounded rectangle */ public static function create($params) { $r = new Rectangle($params); return $r->image(); }