[Barcode] table with sized barcode

Joachim Reichelt Reichelt@gbf.de
Thu, 25 Jan 2001 10:57:27 +0100


Dear all,

i hat the problem to print a table of barcodes of known size.

I got it by changing only a little bit of code, to let -g work in table 
mode too:

diff main.c barcode-0.96/main.c
119c119
< int code_width=-1, code_height=-1;          /* "-g" for standalone 
codes */
---
 > int code_width, code_height;          /* "-g" for standalone codes */
561,568d560
<       if ( ( code_width == -1 )  && ( code_height == -1 ) ) {
<               code_width = xstep - 2*ximargin;
<               code_height = ystep - 2*yimargin;
<       }
< /*
<    int  Barcode_Encode_and_Print(char  *text,  FILE *f,
<       int wid, int hei, int xoff, int yoff, int flags);
< */
570,571c562,562
<                   /* xstep - 2*ximargin, ystep - 2*yimargin, */
<                   code_width, code_height,
---
 >                   xstep - 2*ximargin, ystep - 2*yimargin,


-- 
Mit freundlichen Gruessen                         Best Regards
 
         Joachim Reichelt
 
SF  - Strukturforschung                                       RZ  - Rechenzentrum
              GBF - Gesellschaft fuer Biotechnologische Forschung
                    German Research Centre for Biotechnology

WWW: http://www.gbf.de        _/_/_/   _/_/_/   _/_/_/_/
EMAIL: REICHELT@gbf.de      _/    _/  _/   _/  _/
                           _/        _/   _/  _/
Mascheroder Weg 1         _/  _/    _/_/_/   _/_/_/
D-38124 Braunschweig      _/    _/  _/   _/  _/ 
Tel: +(49) 531 6181 352  _/    _/  _/   _/  _/ 
FAX: +(49) 531 2612 388   _/_/_/   _/_/_/   _/ 

NEU:
NEW:
SF: http://struktur.gbf.de/
    http://struktur.gbf.de/msf/mm.html
RZ: http://wtd.gbf.de/rz/rz.html

-- Disclaimer --
Standard > Keyword : Opinions, my own, nobody else's, whatsoever ...

Man muss sich notfalls jemand mieten,
hat man an Geist selbst nichts zu bieten!     (Heinz Erhardt)