Skip to content

Commit

Permalink
Add more methods to adapter for issue pear#3
Browse files Browse the repository at this point in the history
  • Loading branch information
CloCkWeRX committed Dec 11, 2011
1 parent 0522043 commit 3818e18
Showing 1 changed file with 25 additions and 12 deletions.
37 changes: 25 additions & 12 deletions Image/Barcode2/Writer.php
Expand Up @@ -6,19 +6,32 @@
* @todo See if there are other packages doing this already * @todo See if there are other packages doing this already
*/ */
class Image_Barcode2_Writer { 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) { public function imagestring($image, $font, $x, $y, $string, $color) {
return imagefill($image, $x, $y, $color); return imagestring($image, $font, $x, $y, $string, $color;
} }


public function imagefilledrectangle($image, $x1, $y1, $x2, $y2, $color) { public function imagefill($image, $x, $y, $color) {
return imagefilledrectangle($image, $x1, $y1, $x2, $y2, $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) { public function imagestring($image, $font, $x , $y, $string, $color) {
return 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 3818e18

Please sign in to comment.