Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add more methods to adapter for issue #3

  • Loading branch information...
commit 0e4ec6fcd31b56f1d4625955eb0e705ae8401d4f 1 parent d14c4c5
@CloCkWeRX CloCkWeRX authored
Showing with 25 additions and 12 deletions.
  1. +25 −12 Image/Barcode2/Writer.php
View
37 Image/Barcode2/Writer.php
@@ -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);
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.