1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- /**
- *--------------------------------------------------------------------
- *
- * Base class to draw images
- *
- *--------------------------------------------------------------------
- * Copyright (C) Jean-Sebastien Goupil
- * http://www.barcodephp.com
- */
- abstract class BCGDraw {
- protected $im;
- protected $filename;
- /**
- * Constructor.
- *
- * @param resource $im
- */
- protected function __construct($im) {
- $this->im = $im;
- }
- /**
- * Sets the filename.
- *
- * @param string $filename
- */
- public function setFilename($filename) {
- $this->filename = $filename;
- }
- /**
- * Method needed to draw the image based on its specification (JPG, GIF, etc.).
- */
- abstract public function draw();
- }
- ?>
|