home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18326 < prev    next >
Encoding:
Text File  |  1992-11-12  |  1.4 KB  |  30 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!gumby!destroyer!news.iastate.edu!niko
  3. From: niko@iastate.edu (Nikolaus E Schuessler)
  4. Subject: Re: How to tell screen depth?
  5. Message-ID: <BxM74p.JzH@news.iastate.edu>
  6. Sender: news@news.iastate.edu (USENET News System)
  7. Organization: Iowa State University, Ames, IA
  8. References: <jvp.721588860@cpre1.ee.iastate.edu>
  9. Date: Thu, 12 Nov 1992 17:55:32 GMT
  10. Lines: 18
  11.  
  12. In article <jvp.721588860@cpre1.ee.iastate.edu> jvp@vlsi2.ee.iastate.edu (Jim Van Peursem) writes:
  13. >  How do I tell the screen depth of the monitor that one of my window's is
  14. >in?  I don't want to know if the computer has color quickdraw.  I want to
  15. >know whether to draw the window in color or not based on the pixel depth
  16. >of the screen.  Can anyone point me in the right direction please?
  17. >
  18.  
  19. You will wan't to use some combination of GetMaxDevice (or GetDevice on
  20. something you know to be on the screen you're interested in). I forget exactly
  21. what all the parameters are, but it returns a bitmap or window which
  22. has a '.pixelDepth' field... if it is greater than 1 then color!
  23.  
  24. Inside Mac V should have the details... Look under 'GetMaxDevice' ...
  25. -- 
  26. Niko Schuessler               
  27. Project Vincent Systems Manager              email: niko@iastate.edu
  28. Iowa State University Computation Center     voice: (515) 294-1672
  29. Ames IA 50010                                snail: 272 Durham 
  30.