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"
19 extern int ignoredraworder; //default:0
20 extern int drawonlyshapes; //default:0
21 extern int jpegquality; //default:100;
23 typedef long int twip;
26 double m11,m12,m21,m22,m13,m23;
53 SWFFont(char*name, int t1id, char*filename);
55 T1_OUTLINE*getOutline(char*charname);
56 int getSWFCharID(char*name);
58 char*getCharName(int t);
64 double fontm11,fontm12,fontm21,fontm22;
65 unsigned short int linewidth;
71 #define DRAWMODE_STROKE 1
72 #define DRAWMODE_FILL 2
73 #define DRAWMODE_EOFILL 3
74 #define DRAWMODE_CLIP 4
75 #define DRAWMODE_EOCLIP 5
77 void swfoutput_init(struct swfoutput*, char*filename, int sizex, int sizey);
78 void swfoutput_setprotected(); //write PROTECT tag
80 void swfoutput_newpage(struct swfoutput*);
82 void swfoutput_setfont(struct swfoutput*, char*fontid, int t1font, char*filename);
83 int swfoutput_queryfont(struct swfoutput*, char*fontid);
84 void swfoutput_setdrawmode(struct swfoutput*, int drawmode);
85 void swfoutput_setfillcolor(struct swfoutput*, unsigned char r, unsigned char g, unsigned char b, unsigned char a);
86 void swfoutput_setstrokecolor(struct swfoutput*, unsigned char r, unsigned char g, unsigned char b, unsigned char a);
87 void swfoutput_setfontmatrix(struct swfoutput*,double,double,double,double);
88 void swfoutput_setlinewidth(struct swfoutput*, double linewidth);
90 void swfoutput_drawchar(struct swfoutput*,double x,double y,char*a);
91 void swfoutput_drawpath(struct swfoutput*, T1_OUTLINE*outline, struct swfmatrix*m);
92 void swfoutput_startclip(struct swfoutput*, T1_OUTLINE*outline, struct swfmatrix*m);
93 void swfoutput_endclip(struct swfoutput*);
94 void swfoutput_drawimagefile(struct swfoutput*, char*filename, int sizex,int sizey,
100 void swfoutput_destroy(struct swfoutput*);
102 #endif //__swfoutput_h__