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