@@ 203-207 (lines=5) @@ | ||
200 | if ($v['t']) { |
|
201 | $y = round(($v['p'] * $h / $this->barcode_array['maxh']), 3); |
|
202 | // draw a vertical bar |
|
203 | if ($imagick) { |
|
204 | $bar->rectangle($x, $y, ($x + $bw - 1), ($y + $bh - 1)); |
|
205 | } else { |
|
206 | imagefilledrectangle($png, $x, $y, ($x + $bw - 1), ($y + $bh - 1), $fgcol); |
|
207 | } |
|
208 | } |
|
209 | $x += $bw; |
|
210 | } |
@@ 204-208 (lines=5) @@ | ||
201 | for ($c = 0; $c < $this->barcode_array['num_cols']; ++$c) { |
|
202 | if ($this->barcode_array['bcode'][$r][$c] == 1) { |
|
203 | // draw a single barcode cell |
|
204 | if ($imagick) { |
|
205 | $bar->rectangle($x, $y, ($x + $w - 1), ($y + $h - 1)); |
|
206 | } else { |
|
207 | imagefilledrectangle($png, $x, $y, ($x + $w - 1), ($y + $h - 1), $fgcol); |
|
208 | } |
|
209 | } |
|
210 | $x += $w; |
|
211 | } |