BaCode.php 0.0.0
Code128 クラス

Code128バーコード生成クラス [詳解]

公開メンバ関数

 draw ($code, $minWidthDot, $height)
 バーコード:CODE128を描画します
 draw_by_width ($code, $width, $height)
 バーコード:CODE128を幅指定で描画します
 draw_svg ($code, $minWidthDot, $height)
 バーコード:CODE128をSVGで描画します(最小ピッチ指定)
 draw_by_width_svg ($code, $width, $height)
 バーコード:CODE128をSVGで幅指定描画します

詳解

Code128バーコード生成クラス

関数詳解

◆ draw()

draw ( $code,
$minWidthDot,
$height )

バーコード:CODE128を描画します

引数
string$codeバーコードのコード
int$minWidthDot最小ドット数(1以上)
int$heightバーの高さ(ドット)
戻り値
resource バーコードイメージ
例外

Exception 無効な文字が含まれる場合

参照先 draw_svg().

◆ draw_by_width()

draw_by_width ( $code,
$width,
$height )

バーコード:CODE128を幅指定で描画します

引数
string$codeバーコードのコード
int$widthバーコードの幅(ドット)
int$heightバーの高さ(ドット)
戻り値
resource バーコードイメージ

参照先 draw_by_width_svg().

◆ draw_by_width_svg()

draw_by_width_svg ( $code,
$width,
$height )

バーコード:CODE128をSVGで幅指定描画します

引数
string$codeバーコードのコード
int$widthバーコードの幅(ドット)
int$heightバーの高さ(ドット)
戻り値
string SVG文字列

参照元 draw_by_width().

◆ draw_svg()

draw_svg ( $code,
$minWidthDot,
$height )

バーコード:CODE128をSVGで描画します(最小ピッチ指定)

引数
string$codeバーコードのコード
int$minWidthDot最小ドット数(1以上)
int$heightバーの高さ(ドット)
戻り値
string SVG文字列

参照元 draw().


このクラス詳解は次のファイルから抽出されました: