Example #1
0
 public function generate($hexColour = "#bb1177")
 {
     /*
     	The inner width and height of the signature card.
     	This excludes the margins.
     */
     $this->baseWidth = $this->template->calculateBaseWidth();
     $this->baseHeight = $this->template->calculateBaseHeight();
     $this->hexColour = $hexColour;
     $this->template->getCard()->draw($this->canvas, $hexColour, $this->template, $this->baseWidth, $this->baseHeight);
     $this->template->drawComponents();
     // Sets the headers and echoes the image
     $this->output();
 }