home *** CD-ROM | disk | FTP | other *** search
/ Nebula / nebula.bin / SourceCode / MiniExamples / TIFFandEPS / ImageView.h < prev    next >
Text File  |  1993-01-19  |  611b  |  25 lines

  1. /*  ImageView.h
  2.  *  Purpose: When a new TIFF or EPS image is opened, a window is created and
  3.  *     an instance of this class -- ImageView -- is installed as the contentView
  4.  *     for the window.  This ties the NXImage instance together with the view.
  5.  *
  6.  *  You may freely copy, distribute, and reuse the code in this example.
  7.  *  NeXT disclaims any warranty of any kind, expressed or  implied, as to its fitness
  8.  *  for any particular use.
  9.  *
  10.  */
  11.  
  12. #import <appkit/View.h>
  13.  
  14. @interface ImageView:View
  15. {
  16.     id    anImage;
  17. }
  18.  
  19. - initFromImage: newImage;
  20. - image;
  21. - drawSelf:(NXRect *)rects :(int)rectCount;
  22. - free;
  23.  
  24. @end
  25.