2 Header file for swfoutput.cc (and swfoutput_x11.cc).
4 Part of the swftools package.
6 Copyright (c) 2001 Matthias Kramm <kramm@quiss.org>
8 This file is distributed under the GPL, see file COPYING for details */
10 #ifndef __swfoutput_h__
11 #define __swfoutput_h__
15 #include "../lib/rfxswf.h"
18 typedef long int twip;
21 double m11,m12,m21,m22,m13,m23;
32 double fontm11,fontm12,fontm21,fontm22;
33 unsigned short int linewidth;
38 #define DRAWMODE_STROKE 1
39 #define DRAWMODE_FILL 2
40 #define DRAWMODE_EOFILL 3
41 #define DRAWMODE_CLIP 4
42 #define DRAWMODE_EOCLIP 5
44 void swfoutput_init(struct swfoutput*, char*filename, int sizex, int sizey);
45 void swfoutput_setprotected(); //write PROTECT tag
47 void swfoutput_newpage(struct swfoutput*);
49 int swfoutput_setfont(struct swfoutput*, int fontid, int t1font);
50 void swfoutput_setdrawmode(struct swfoutput*, int drawmode);
51 void swfoutput_setfillcolor(struct swfoutput*, unsigned char r, unsigned char g, unsigned char b, unsigned char a);
52 void swfoutput_setstrokecolor(struct swfoutput*, unsigned char r, unsigned char g, unsigned char b, unsigned char a);
53 void swfoutput_setfontmatrix(struct swfoutput*,double,double,double,double);
54 void swfoutput_setlinewidth(struct swfoutput*, double linewidth);
56 void swfoutput_drawchar(struct swfoutput*,double x,double y,char a);
57 void swfoutput_drawpath(struct swfoutput*, T1_OUTLINE*outline, struct swfmatrix*m);
58 void swfoutput_startclip(struct swfoutput*, T1_OUTLINE*outline, struct swfmatrix*m);
59 void swfoutput_endclip(struct swfoutput*);
60 void swfoutput_drawimagefile(struct swfoutput*, char*filename, int sizex,int sizey,
66 void swfoutput_destroy(struct swfoutput*);
68 #endif //__swfoutput_h__