Example #1
0
 /**
  * Constructs a new Canvas.
  * @param mixed $element Only Image or Figure class
  * @access public
  * @return void
  */
 public function __construct($element = null)
 {
     parent::__construct($element);
 }
Example #2
0
 /**
  * Sets size for figure.
  * @access public
  * @param int $width Width.
  * @param int $height Height.
  * @return void
  */
 public function __construct($width = 0, $height = 0)
 {
     $this->setSize($width, $height);
     parent::__construct();
 }