Index: trunk/Ohana/src/libkapa/include/kapa.h
===================================================================
--- trunk/Ohana/src/libkapa/include/kapa.h	(revision 41340)
+++ trunk/Ohana/src/libkapa/include/kapa.h	(revision 41341)
@@ -45,5 +45,7 @@
   KAPA_PLOT_BARS_OUTLINE =  4,
   KAPA_PLOT_BARS_OUTFILL =  5,
-  KAPA_PLOT_INVALID_MAX  =  6,
+  KAPA_PLOT_POLYGON      =  6,
+  KAPA_PLOT_POLYFILL     =  7,
+  KAPA_PLOT_INVALID_MAX  =  8,
 } KapaPlotStyle;
 
@@ -172,6 +174,8 @@
   int Nx, Ny, Nbyte;
   bDrawColor **pixels;
+  char **mask;
   png_color *palette;
   int Npalette;
+
   // current drawing values:
   int bWeight;
@@ -218,4 +222,5 @@
 int KapaPNG (int fd, const char *filename);
 int KapaPPM (int fd, const char *filename);
+int KapaPDF (int fd, const char *filename, int scaleMode, int pageMode, char *pagename);
 
 /* KiiCursor.c */
@@ -256,4 +261,8 @@
 int KapaGetImageData (int fd, KapaImageData *graphmode);
 int KapaSetToolbox (int fd, int location);
+int KapaSetSmoothSigma (int fd, float sigma);
+int KapaMemoryDump (int fd);
+int KapaMemoryDumpLines (int fd, int Nlines);
+int KapaMemoryDumpOnExit (int fd, int state);
 
 /* KapaColors */
@@ -272,4 +281,5 @@
 /* RotFont.c */
 void InitRotFonts PROTO((void));
+void FreeRotFonts PROTO((void));
 int SetRotFont PROTO((char *name, int size));
 char *GetRotFont PROTO((int *size));
@@ -282,9 +292,9 @@
 int DrawRotTextInit (Display *display, Window window, GC gc, unsigned long fore, unsigned long back);
 
+/* PDFRotFont.c */
+void PDFRotText (IOBuffer *buffer, int x, int y, char *string, int pos, double angle);
 
 /* PSRotFont.c */
 void PSRotText PROTO((FILE *f, int x, int y, char *string, int pos, double angle));
-void PSDumpRotSegment PROTO((FILE *f, char *segment, int *Nseg));
-void PSSetFont PROTO((FILE *f, char *name, int size));
 int PSRotStrlen PROTO((char *c));
 
@@ -292,4 +302,5 @@
 bDrawBuffer *bDrawBufferCreate (int Nx, int Ny, int Nbyte, png_color *palette, int Npalette);
 void bDrawBufferFree (bDrawBuffer *buffer);
+int bDrawMerge (bDrawBuffer *base, bDrawBuffer *layer);
 void bDrawSetBuffer (bDrawBuffer *buffer);
 void bDrawSetColor (bDrawBuffer *buffer, bDrawColor color);
@@ -312,4 +323,7 @@
 void bDrawTriOpen  (bDrawBuffer *buffer, double x1, double y1, double x2, double y2, double x3, double y3);
 void bDrawTriFill  (bDrawBuffer *buffer, double x1, double y1, double dx, double dy);
+void bDrawPolyFill (bDrawBuffer *buffer, double *x, double *y, int Npoints);
+
+void bDrawSmooth (bDrawBuffer *buffer, float sigma);
 
 /* bDrawRotFont.c */
