home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / plug-ins / gimpressionist / ppmtool.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-12-30  |  1.3 KB  |  36 lines

  1. #include <glib.h>
  2.  
  3. struct ppm {
  4.   int width;
  5.   int height;
  6.   unsigned char *col;
  7. };
  8.  
  9. void fatal(char *s);
  10. void killppm(struct ppm *p);
  11. void newppm(struct ppm *p, int xs, int ys);
  12. void getrgb(struct ppm *s, float xo, float yo, unsigned char *d);
  13. void resize(struct ppm *p, int nx, int ny);
  14. void rescale(struct ppm *p, double scale);
  15. void resize_fast(struct ppm *p, int nx, int ny);
  16. void loadppm(char *fn, struct ppm *p);
  17. void saveppm(struct ppm *p, char *fn);
  18. void copyppm(struct ppm *s, struct ppm *p);
  19. void fill(struct ppm *p, guchar *c);
  20. void freerotate(struct ppm *p, double amount);
  21. void pad(struct ppm *p, int left,int right, int top, int bottom, guchar *);
  22. void edgepad(struct ppm *p, int left,int right, int top, int bottom);
  23. void autocrop(struct ppm *p, int room);
  24. void crop(struct ppm *p, int lx, int ly, int hx, int hy);
  25. void ppmgamma(struct ppm *p, float e, int r, int g, int b);
  26. void ppmbrightness(struct ppm *p, float e, int r, int g, int b);
  27. void putrgb_fast(struct ppm *s, float xo, float yo, guchar *d);
  28. void putrgb(struct ppm *s, float xo, float yo, guchar *d);
  29. void drawline(struct ppm *p, float fx, float fy, float tx, float ty, guchar *col);
  30.  
  31. void repaint(struct ppm *p, struct ppm *a);
  32.  
  33. void blur(struct ppm *p, int xrad, int yrad);
  34.  
  35. void mkgrayplasma(struct ppm *p, float turb);
  36.