1 #import <appkit/View.h>
2 #import <zone.h>
3 #import <streams/streams.h>
4 
5 // Image.h
6 //
7 // Written by Vince DeMarco
8 // 	demarco@cpsc.ucalgary.ca
9 //
10 // This program is In the Public Domain. If you make any improvements to this
11 // program please let me know
12 
13 
14 @interface Image:View
15 {
16     id                  thiswindow, thisview;
17     id                  tiffimage;                // NXBitmapImageRep used to save the file
18     int                 xsize, ysize;
19     void               *rmap, *gmap, *bmap, *amap;
20     unsigned char      *r,*g,*b,*a;
21     NXZone             *newZone;
22     char                fileName[1024];
23     char                windowIconName[1024];
24     int                 numColors;
25     NXRect              temprect;	 // Temp place to store Window Rect
26 }
27 
28 - init;
29 - displayImage;
30 - drawSelf:(const NXRect *)rects :(int)rectCount;
31 - free;
32 - saveAsTiff:(const char *)filename usingCompression:(int)compression;
33 - saveAsEPS:(const char *)filename;
34 - windowWillClose:sender;
35 @end
36 
37