fixed off-by-one bug
[swftools.git] / lib / gfxpoly / renderpoly.h
blob1c8d183e196c1f89a0d7c073d25ad66f4c16d558
1 #ifndef __renderpoly_h__
2 #define __renderpoly_h__
4 #include "poly.h"
5 #include "wind.h"
7 typedef struct {
8 int xmin;
9 int ymin;
10 int xmax;
11 int ymax;
12 int width;
13 int height;
14 } intbbox_t;
16 unsigned char* render_polygon(gfxpoly_t*polygon, intbbox_t*bbox, double zoom, windrule_t*rule, windcontext_t*context);
18 intbbox_t intbbox_new(int x1, int y1, int x2, int y2);
19 intbbox_t intbbox_from_polygon(gfxpoly_t*polygon, double zoom);
21 int bitmap_ok(intbbox_t*bbox, unsigned char*data);
22 int compare_bitmaps(intbbox_t*bbox, unsigned char*data1, unsigned char*data2);
24 #endif