- トップ
 - > メソッド
 - > w
 - > write2DBarcode
 
writeBarcode  >>
  <<  write1DBarcode
write2DBarcode
二次元バーコードを出力する。
publicメソッド、Version 4.5.037~
- 書式
 - 
write2DBarcode( $code, $type, $x, $y, $w, $h, $style, $align, $distort ) - 戻り値
 - 
(なし)
 - パラメータ
 - 
strint $code 出力するコード strint $type バーコードの種類(see 2dbarcodes.php for supported formats). int $x '' 出力位置のX座標 int $y '' 出力位置のY座標 int $w '' ユーザ単位で幅を指定する int $h '' ユーザ単位で高さを指定する array $style '' オプション - boolean $style['border'] trueであれば、境界線を出力する
 - int $style['padding'] バーコード周囲の余白('auto'で自動的に余白が設定される)
 - int $style['hpadding'] horizontal padding in barcode units (set to 'auto' for automatic padding)
 - int $style['vpadding'] vertical padding in barcode units (set to 'auto' for automatic padding)
 - int $style['module_width'] width of a single module in points
 - int $style['module_height'] height of a single module in points
 - array $style['fgcolor'] バーと文字の色を配列で指定する
 - mixed $style['bgcolor'] 背景色を指定するか、falseであれば、透明
 - string $style['position'] ページにおけるバーコードの位置:L = left margin; C = center; R = right margin; S = stretch
 - $style['module_width'] width of a single module in points
 - $style['module_height'] height of a single module in points
 
string $align '' 画像挿入後に移動するカーソルの垂直方向の位置、以下のいずれか - T: 右上(RTLの場合は左上)
 - M: 右中(RTLの場合は左中)
 - B: 右下(RTLの場合は左下)
 - N: 次の行
 
bool $disort false trueであれば、distort the barcode to fit width and height, otherwise preserve aspect ratio