-------------------------------------------------------------------- * Put a finder pattern. * @param frame * @param width * @param ox,oy upper-left coordinate of the pattern */
(&$frame, $ox, $oy)
| 390 | * @param ox,oy upper-left coordinate of the pattern |
| 391 | */ |
| 392 | public static function putFinderPattern(&$frame, $ox, $oy) |
| 393 | { |
| 394 | $finder = array( |
| 395 | "\xc1\xc1\xc1\xc1\xc1\xc1\xc1", |
| 396 | "\xc1\xc0\xc0\xc0\xc0\xc0\xc1", |
| 397 | "\xc1\xc0\xc1\xc1\xc1\xc0\xc1", |
| 398 | "\xc1\xc0\xc1\xc1\xc1\xc0\xc1", |
| 399 | "\xc1\xc0\xc1\xc1\xc1\xc0\xc1", |
| 400 | "\xc1\xc0\xc0\xc0\xc0\xc0\xc1", |
| 401 | "\xc1\xc1\xc1\xc1\xc1\xc1\xc1" |
| 402 | ); |
| 403 | |
| 404 | for($y=0; $y<7; $y++) { |
| 405 | QRstr::set($frame, $ox, $oy+$y, $finder[$y]); |
| 406 | } |
| 407 | } |
| 408 | |
| 409 | //---------------------------------------------------------------------- |
| 410 | public static function createFrame($version) |