home *** CD-ROM | disk | FTP | other *** search
/ Nebula / nebula.bin / SourceCode / MiniExamples / Rotato / MyImage.h < prev    next >
Text File  |  1991-05-10  |  630b  |  31 lines

  1. /*  
  2.  * 
  3.  * MyImage.h    -- How to rotate an NXImage
  4.  * 
  5.  * You may freely copy, distribute, and reuse the code in this example.
  6.  * NeXT disclaims any warranty of any kind, expressed or  implied, as to its
  7.  * fitness for any particular use.
  8.  *
  9.  * Written by Henry Krempel -- NeXT Developer Support
  10.  *
  11.  * Wed Apr 10 17:39:50 1991
  12.  */
  13. #import <appkit/NXImage.h>
  14.  
  15. @interface MyImage:NXImage
  16. {
  17.     int rotation, flipped;
  18.     NXSize origSize, rotSize, *currentSize;
  19. }
  20.  
  21. - initFromFile:(const char *)fileName;
  22.  
  23. - setRotation:(int)anInt;
  24.  
  25. - (BOOL)drawRepresentation:(NXImageRep *)imageRep inRect:(const NXRect *)rect;
  26.  
  27. - flip:sender;
  28.  
  29. @end
  30.  
  31.