source: abuse/trunk/src/imlib/include/morph.h @ 28

Last change on this file since 28 was 2, checked in by Sam Hocevar, 18 years ago
  • imported original 0.7.0 tarball
File size: 723 bytes
Line 
1#ifndef __MORPH_H_
2#define __MORPH_H_
3
4#include "image.hpp"
5struct point
6{
7  short sx,sy,ex,ey;    /* starting x -ending x */
8  unsigned char sc,ec;             /* start/ending color */
9};
10
11struct bmap
12{
13  unsigned l,h;
14  char *data;
15} ;
16
17
18/* bm is an array [1..2] of the struct bmap - they will not be changed */
19/* bm[0] is the staring morph bitmap which sx,sy  and sc refer to
20   bm[1] is the ending ----                ex,sy and ec ---
21  numpoints returns the number of points.
22  The function returns an array (which it allocates) of point (note above
23  struct)
24  bcolor is the background */
25
26extern struct point *morph(image **bm, char bcolor, int *num_points);
27#endif
28/*  Kiss off ok,   ok, ok, ok.. */
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Note: See TracBrowser for help on using the repository browser.