1
1
/* pxl-outline.h: find a list of outlines which make up one character.
3
Copyright (C) 1992 Free Software Foundation, Inc.
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2, or (at your option)
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software
17
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
3
* Copyright (C) 1992 Free Software Foundation, Inc.
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2, or (at your option)
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
20
#ifndef PXL_OUTLINE_H
20
21
#define PXL_OUTLINE_H
43
44
after the last is the first, and the previous coordinate before the
44
45
first is the last. */
45
46
#define O_NEXT(p_o, n) (((n) + 1) % O_LENGTH (p_o))
46
#define O_PREV(p_o, n) ((n) == 0 \
47
? O_LENGTH (p_o) - 1 \
47
#define O_PREV(p_o, n) ((n) == 0 ? O_LENGTH (p_o) - 1 : (n) - 1)
50
49
/* And the character turns into a list of such lists. */
64
63
/* Find all pixels on the outline in the character C. */
65
extern pixel_outline_list_type find_outline_pixels ();
64
extern pixel_outline_list_type find_outline_pixels (void);
67
66
/* Free the memory in the list. */
68
67
extern void free_pixel_outline_list (pixel_outline_list_type *);