home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Graphics / ToyViewer-2.6a / src / ImageSave.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-29  |  740 b   |  40 lines

  1. #import <objc/Object.h>
  2. #import "ColorMap.h"
  3. #import "common.h"
  4.  
  5. @interface ImageSave:Object
  6. {
  7.     id    toyWin;
  8.     id    toyView;
  9. }
  10.  
  11. + (char *)mk_tmpname:(const char *)path ext:(const char *)ex nopath:(BOOL)flag;
  12.  
  13. - initWithWin: aToyWin;
  14. - (char *)getSavename: (const char *)path with:(int)itype;
  15. - saveAsTiff: sender;
  16. - saveAsEPS: sender;
  17. - saveAsType: (int)itype;
  18.  
  19. @end
  20.  
  21.  
  22. @interface ImageSave (SaveXBM)
  23.  
  24. - saveAsXBM: sender;
  25.  
  26. @end
  27.  
  28. @interface ImageSave (SaveGIF)
  29.  
  30. - (int)getPalette:(ColorMap *)colormap info:(commonInfo *)cinf
  31.     map:(unsigned char **)map needAlpha:(BOOL)alflag err:(int *)code;
  32. - (char *)saveAsGif: (char *)gifname;
  33. - saveAsPng: sender;
  34.  
  35. @end
  36.  
  37. /* This data is used by ImageSave family */
  38. extern char saveDir[];
  39. extern char *appDir;
  40.