| 1: | <?php |
| 2: | namespace{ |
| 3: | class Canvas{ |
| 4: | public $width = 0; |
| 5: | public $height = 0; |
| 6: | public $mime = "image/jpeg"; |
| 7: | public $data; |
| 8: | public $quality = 90; |
| 9: | public $doSharpen = true; |
| 10: | public $maintainAspect = false; |
| 11: | public $font; |
| 12: | public $fontcolor; |
| 13: | public $fontsize=5; |
| 14: | public function setAspectRatio(){} |
| 15: | public function setFont($fontFile){} |
| 16: | public function setFontSize($fontSize){} |
| 17: | public function setFontColor($red,$green,$blue,$alpha=0){} |
| 18: | public function drawImage($image,$x,$y,$width,$height){} |
| 19: | public function drawImageOver($image,$dst_x,$dst_y,$x,$y,$dst_width,$dst_height,$width,$height){} |
| 20: | public function drawString($x,$y,$string){} |
| 21: | public function saveImage($path){} |
| 22: | public function getImageDataStreem(){} |
| 23: | function getOutputFunction(){} |
| 24: | } |
| 25: | } |
| 26: |