Utah Raster Toolkit  9999-git
URT Development version (post-3.1b)
Image.h
Go to the documentation of this file.
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 {
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;
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
NXZone * newZone
Definition: Image.h:21
unsigned char * g
Definition: Image.h:20
void * gmap
Definition: Image.h:19
unsigned char * r
Definition: Image.h:20
unsigned char * a
Definition: Image.h:20
char fileName[1024]
Definition: Image.h:22
id init()
id free()
Definition: Image.m:99
id saveAsEPS:(const char *filename)
Definition: Image.m:124
id drawSelf::(const NXRect *rects,[] int rectCount)
Definition: Image.m:87
id windowWillClose:(id sender)
Definition: Image.m:140
unsigned char * b
Definition: Image.h:20
void * rmap
Definition: Image.h:19
NXRect temprect
Definition: Image.h:25
id displayImage()
Definition: Image.m:36
id saveAsTiff:usingCompression:(const char *filename,[usingCompression] int compression)
Definition: Image.m:109
void * amap
Definition: Image.h:19
Definition: Image.m:26
int ysize
Definition: Image.h:18
void * bmap
Definition: Image.h:19
int xsize
Definition: Image.h:18
id thisview
Definition: Image.h:16
id thiswindow
Definition: Image.h:16
int numColors
Definition: Image.h:24
id tiffimage
Definition: Image.h:17
char windowIconName[1024]
Definition: Image.h:23