File: morph.h

package info (click to toggle)
abuse 2.00-12
  • links: PTS
  • area: main
  • in suites: slink
  • size: 12,708 kB
  • ctags: 15,389
  • sloc: ansic: 115,852; cpp: 6,792; lisp: 2,066; sh: 1,734; makefile: 1,601; asm: 264
file content (42 lines) | stat: -rw-r--r-- 723 bytes parent folder | download | duplicates (7)
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
#ifndef __MORPH_H_
#define __MORPH_H_

#include "image.hpp"
struct point
{
  short sx,sy,ex,ey;    /* starting x -ending x */
  unsigned char sc,ec;             /* start/ending color */
};

struct bmap
{
  unsigned l,h;
  char *data;
} ;


/* bm is an array [1..2] of the struct bmap - they will not be changed */
/* bm[0] is the staring morph bitmap which sx,sy  and sc refer to
   bm[1] is the ending ----                ex,sy and ec ---
  numpoints returns the number of points.
  The function returns an array (which it allocates) of point (note above
  struct)
  bcolor is the background */

extern struct point *morph(image **bm, char bcolor, int *num_points);
#endif
/*  Kiss off ok,   ok, ok, ok.. */