home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Connectivity / GateKeeper-2.1 / AlphaDBImageView.m < prev    next >
Encoding:
Text File  |  1997-02-25  |  989 b   |  36 lines

  1. //*****************************************************************************
  2. //
  3. //    AlphaDBImageView.m.  
  4. //        
  5. //        DBImageView subclass that correctly displays images with alpha 
  6. // 
  7. //            by    Felipe A. Rodriguez        
  8. //
  9. //    This code is supplied "as is" the author makes no warranty as to its 
  10. //    suitability for any purpose.  This code is free and may be distributed 
  11. //    in accordance with the terms of the:
  12. //        
  13. //            GNU GENERAL PUBLIC LICENSE
  14. //            Version 2, June 1991
  15. //            copyright (C) 1989, 1991 Free Software Foundation, Inc.
  16. //             675 Mass Ave, Cambridge, MA 02139, USA
  17. //
  18. //*****************************************************************************
  19.  
  20. #import <appkit/appkit.h>
  21. #import "AlphaDBImageView.h"
  22.  
  23.  
  24. @implementation AlphaDBImageView
  25.  
  26. - drawSelf:(const NXRect *)rects :(int)rectCount 
  27. {
  28.     PSsetgray(NX_LTGRAY);                    // set color NX_LTGRAY in this case
  29.     NXRectFill(rects);                        // fill rect with current color
  30.     [super drawSelf:rects :rectCount];
  31.  
  32.    return self;
  33. }
  34.  
  35. @end
  36.