Jumat, 01 November 2013

PHP Indonesia - Facebook: [ask] sya memakai library barcodephp : http://www...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Join Delanceyplace

Sign up to receive a free quote from a non fiction book every weekday.
From our sponsors
[ask] sya memakai library barcodephp : http://www...
Nov 1st 2013, 10:05, by Adhie Purwa Sasmita

Adhie Purwa Sasmita 10:05am Nov 1
[ask]

sya memakai library barcodephp :
http://www.barcodephp.com/

kodingnya seperti ini :
// The arguments are R, G, and B for color.

$color_black = new BCGColor(0, 0, 0);
$color_white = new BCGColor(255, 255, 255);

$font = new BCGFontFile('includes/barcode/font/Arial.ttf', 18);

$code = new BCGcode39();
$code->setScale(2);
$code->setThickness(30);
$code->setForegroundColor($color_black);
$code->setBackgroundColor($color_white);
$code->setFont($font);
$code->setChecksum(false);
$code->parse($barcode);

// Drawing Part
$drawing = new BCGDrawing('', $color_white);
drawing->setBarcode($code);
$drawing->draw('barcode.png');

/*$bar=$drawing->finish(BCGDrawing::IMG_FORMAT_PNG);*/

nah msalahnya adlah bgaiman cara untuk menjadikan barcode tersebut menjadi image file png
sya udah coba $drawing->draw('barcode.png'); tp tetep g bisa.

mohon bantuannya..

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar