Permalink
Browse files

Add more methods to adapter for issue #3

  • Loading branch information...
CloCkWeRX committed Dec 11, 2011
1 parent d14c4c5 commit 0e4ec6fcd31b56f1d4625955eb0e705ae8401d4f
Showing with 25 additions and 12 deletions.
  1. +25 −12 Image/Barcode2/Writer.php
View
@@ -6,19 +6,32 @@
* @todo See if there are other packages doing this already
*/
class Image_Barcode2_Writer {
- public function imagestring($image, $font, $x, $y, $string, $color) {
- return imagestring($image, $font, $x, $y, $string, $color;
- }
+
+ public function imagecreate($width, $height) {
+ return imagecreate($width, $height);
+ }
- public function imagefill($image, $x, $y, $color) {
- return imagefill($image, $x, $y, $color);
- }
+ public function imagestring($image, $font, $x, $y, $string, $color) {
+ return imagestring($image, $font, $x, $y, $string, $color;
+ }
- public function imagefilledrectangle($image, $x1, $y1, $x2, $y2, $color) {
- return imagefilledrectangle($image, $x1, $y1, $x2, $y2, $color);
- }
+ public function imagefill($image, $x, $y, $color) {
+ return imagefill($image, $x, $y, $color);
+ }
+
+ public function imagefilledrectangle($image, $x1, $y1, $x2, $y2, $color) {
+ return imagefilledrectangle($image, $x1, $y1, $x2, $y2, $color);
+ }
- public function imagestring($image, $font, $x , $y, $string, $color) {
- return imagestring($image, $font, $x , $y, $string, $color);
- }
+ public function imagestring($image, $font, $x , $y, $string, $color) {
+ return imagestring($image, $font, $x , $y, $string, $color);
+ }
+
+ public function imagefontheight($font) {
+ return imagefontheight($font);
+ }
+
+ public function imagecolorallocate($image, $red, $green, $blue) {
+ return imagecolorallocate($image, $red, $green, $blue);
+ }
}

0 comments on commit 0e4ec6f

Please sign in to comment.