File: pnmtools.h

package info (click to toggle)
pnm2ppa 1.13-8
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,704 kB
  • ctags: 480
  • sloc: ansic: 7,505; sh: 4,222; makefile: 125; python: 8
file content (77 lines) | stat: -rw-r--r-- 2,189 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/***************************************************************************
    pnmtools.h  -  headers for pnmtools.c . 
                             -------------------
    begin                : Sat Oct 14,  2000
    copyright            : (C) 2000 by pnm2ppa project
    email                : 
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef _PNMTOOLS_H
#define _PNMTOOLS_H

void setpixel(int, int, unsigned char );

void setplus(int, int, int );

void setx(int, int, int );

void setblock(int, int, int );

void setchar(int, int, char, int );

void setstring(int , int , char* , int);

void setstringv(int ,int ,char* ,int );

void setCG(int x,int y);

void setsquare(int , int , int , int , int , int );


extern int Width;      /* width and height in 600ths of an inch */
extern int Height;
#if 0
extern int Pwidth;     /* width in bytes */
#endif
extern char *color_bitmap;
extern int BitMap_topline;    /* top line of bitmap */
extern int BitMap_bottomline; /* bottom line of bitmap */
extern int BitMap_Height;     /* height for malloc */
extern int BitMap_Width;      /* width for malloc */

#ifdef __CALIBRATE_PPA_C__
int Width;      /* width and height in 600ths of an inch */
int Height;
#if 0
int Pwidth;     /* width in bytes */
int Pheight;    /* height for malloc */
#endif
char *color_bitmap;
int BitMap_topline;    /* top line of bitmap */
int BitMap_bottomline; /* bottom line of bitmap */
int BitMap_Height;     /* height for malloc */
int BitMap_Width;      /* width for malloc */

#endif

#endif