Imported Upstream version 4.6.0
[debian/atlc] / src / non_gui / usage_create_bmp_for_rect_cen_in_rect.c
1 /* atlc - arbitrary transmission line calculator, for the analysis of
2 transmission lines are directional couplers. 
3
4 Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
5
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either package_version 2
9 of the License, or (at your option) any later package_version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
19 USA.
20
21 Dr. David Kirkby, e-mail drkirkby at ntlworld.com 
22
23 */
24 #include "config.h"
25
26
27 #ifdef HAVE_STDLIB_H
28 #include <stdlib.h>    
29 #endif
30
31 #include "definitions.h"
32 #include "exit_codes.h"
33
34 void usage_create_bmp_for_rect_cen_in_rect(void)
35 {
36       fprintf(stderr,"Usage: rect_cen_in_rect [-b bmp_size] [-f outfile] [-v] W H w h Er1 outfile.bmp\n\n");
37       fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
38       fprintf(stderr,"outfile.bmp is the file to write the bitmap to\n");      
39       fprintf(stderr,"W, H, w, and h  are all in mm or all in inches\n");      
40       fprintf(stderr,"(they *must* use the same units. Non-integers allowed for all parameters)\n");
41       fprintf(stderr,"options are:\n");
42       fprintf(stderr,"  -b bmp_size\n     Sets the size of the bitmap, in the range 1 to 15 (default %d).\n",DEFAULT_BMP_SIZE);
43       fprintf(stderr,"  -v         \n     Write diagnostic information to stdout\n");
44       fprintf(stderr,"-----------------------------------------------------  ^\n");
45       fprintf(stderr,"|                                                   |  |\n");
46       fprintf(stderr,"|     Er1     <----------w----------->              |  |\n");
47       fprintf(stderr,"|             ------------------------   ^          |  |\n");
48       fprintf(stderr,"|             |                      |   |          |  |\n");
49       fprintf(stderr,"|             |  Metallic conductor  |   |          |  H\n");
50       fprintf(stderr,"|             |  conductor (centred  |   h          |  |\n");
51       fprintf(stderr,"|             |  vertically and      |   |          |  |\n");
52       fprintf(stderr,"|             |  horizontally)       |   |          |  |\n");
53       fprintf(stderr,"|             ------------------------              |  |\n");
54       fprintf(stderr,"|                                                   |  |\n");
55       fprintf(stderr,"-----------------------------------------------------  |\n");
56       fprintf(stderr,"<-------------------------W------------------------->\n\n");
57       fprintf(stderr,"Eg: create_bmp_for_rect_cen_in_rect 200 100 30 30 1.0 foo.bmp\n\n");
58       exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS); 
59 }