|
@@ 164-184 (lines=21) @@
|
| 161 |
|
* @return int drawing position. |
| 162 |
|
* @access private |
| 163 |
|
*/ |
| 164 |
|
function DrawStart($DrawPos, $yPos, $ySize, $xres) { |
| 165 |
|
/* Start code is '*' */ |
| 166 |
|
$narrow = BCD_C39_NARROW_BAR * $xres; |
| 167 |
|
$wide = BCD_C39_WIDE_BAR * $xres; |
| 168 |
|
$this->DrawSingleBar($DrawPos, $yPos, $narrow , $ySize); |
| 169 |
|
$DrawPos += $narrow; |
| 170 |
|
$DrawPos += $wide; |
| 171 |
|
$this->DrawSingleBar($DrawPos, $yPos, $narrow , $ySize); |
| 172 |
|
$DrawPos += $narrow; |
| 173 |
|
$DrawPos += $narrow; |
| 174 |
|
$this->DrawSingleBar($DrawPos, $yPos, $wide , $ySize); |
| 175 |
|
$DrawPos += $wide; |
| 176 |
|
$DrawPos += $narrow; |
| 177 |
|
$this->DrawSingleBar($DrawPos, $yPos, $wide , $ySize); |
| 178 |
|
$DrawPos += $wide; |
| 179 |
|
$DrawPos += $narrow; |
| 180 |
|
$this->DrawSingleBar($DrawPos, $yPos, $narrow, $ySize); |
| 181 |
|
$DrawPos += $narrow; |
| 182 |
|
$DrawPos += $narrow; /* Space between chars */ |
| 183 |
|
return $DrawPos; |
| 184 |
|
} |
| 185 |
|
|
| 186 |
|
/** |
| 187 |
|
* Draws the stop code. |
|
@@ 195-214 (lines=20) @@
|
| 192 |
|
* @return int drawing position. |
| 193 |
|
* @access private |
| 194 |
|
*/ |
| 195 |
|
function DrawStop($DrawPos, $yPos, $ySize, $xres) { |
| 196 |
|
/* Stop code is '*' */ |
| 197 |
|
$narrow = BCD_C39_NARROW_BAR * $xres; |
| 198 |
|
$wide = BCD_C39_WIDE_BAR * $xres; |
| 199 |
|
$this->DrawSingleBar($DrawPos, $yPos, $narrow , $ySize); |
| 200 |
|
$DrawPos += $narrow; |
| 201 |
|
$DrawPos += $wide; |
| 202 |
|
$this->DrawSingleBar($DrawPos, $yPos, $narrow , $ySize); |
| 203 |
|
$DrawPos += $narrow; |
| 204 |
|
$DrawPos += $narrow; |
| 205 |
|
$this->DrawSingleBar($DrawPos, $yPos, $wide , $ySize); |
| 206 |
|
$DrawPos += $wide; |
| 207 |
|
$DrawPos += $narrow; |
| 208 |
|
$this->DrawSingleBar($DrawPos, $yPos, $wide , $ySize); |
| 209 |
|
$DrawPos += $wide; |
| 210 |
|
$DrawPos += $narrow; |
| 211 |
|
$this->DrawSingleBar($DrawPos, $yPos, $narrow, $ySize); |
| 212 |
|
$DrawPos += $narrow; |
| 213 |
|
return $DrawPos; |
| 214 |
|
} |
| 215 |
|
|
| 216 |
|
/** |
| 217 |
|
* Draws the barcode object. |