Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!endor!stew From: stew@endor.harvard.edu (Stew Rubenstein) Newsgroups: comp.sys.mac Subject: Re: How Many Colors? Message-ID: <2930@husc6.UUCP> Date: Sun, 4-Oct-87 12:27:23 EDT Article-I.D.: husc6.2930 Posted: Sun Oct 4 12:27:23 1987 Date-Received: Wed, 7-Oct-87 05:45:03 EDT References: <2927@husc6.UUCP> Sender: news@husc6.UUCP Reply-To: stew@endor.UUCP (Stew Rubenstein) Organization: Aiken Computation Lab Harvard, Cambridge, MA Lines: 18 Keywords: Color, QuickDraw, Depth In article <2927@husc6.UUCP> singer@endor.UUCP (Richard Siegel) writes: >How does one tell how many bits per pixel are set in the Control Panel? >I know that it's possible, because I see demos that refuse to run >unless 8 bits per pixel (256 colors) are set up -- they display a >message saying "8 bits per pixel required" if it isn't set up. > >I assume I'm missing something from IM 5; can anyone set me straight? > > --Rich Look at the routine GetMaxDevice, on page 37 of the March APDA draft IM V. You can also look at the pixelSize field in the PixMap for a CGrafPort or GDevice. Stew Rubenstein Cambridge Scientific Computing, Inc. UUCPnet: seismo!harvard!rubenstein CompuServe: 76525,421 Internet: rubenstein@harvard.harvard.edu MCIMail: CSC