-------------------------------------------------------------------- * Put a finder pattern. * @param frame * @param width * @param ox,oy upper-left coordinate of the pattern */
(&$frame, $ox, $oy)
| 702 | * @param ox,oy upper-left coordinate of the pattern |
| 703 | */ |
| 704 | public static function putFinderPattern(&$frame, $ox, $oy) |
| 705 | { |
| 706 | $finder = array( |
| 707 | "\xc1\xc1\xc1\xc1\xc1\xc1\xc1", |
| 708 | "\xc1\xc0\xc0\xc0\xc0\xc0\xc1", |
| 709 | "\xc1\xc0\xc1\xc1\xc1\xc0\xc1", |
| 710 | "\xc1\xc0\xc1\xc1\xc1\xc0\xc1", |
| 711 | "\xc1\xc0\xc1\xc1\xc1\xc0\xc1", |
| 712 | "\xc1\xc0\xc0\xc0\xc0\xc0\xc1", |
| 713 | "\xc1\xc1\xc1\xc1\xc1\xc1\xc1" |
| 714 | ); |
| 715 | |
| 716 | for($y=0; $y<7; $y++) { |
| 717 | QRstr::set($frame, $ox, $oy+$y, $finder[$y]); |
| 718 | } |
| 719 | } |
| 720 | |
| 721 | //---------------------------------------------------------------------- |
| 722 | public static function createFrame($version) |