Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Appearance Manager Gurus



How about just TestDeviceAttribute(theDevice, gdDevType)?

works for me on both 9 and X (at least the QA says so). :-)

pete
> ----------
> From: Paul Baxter
> Sent: Thursday, February 28, 2002 3:43 PM
> To: Umed Zokirov; email@hidden
> Subject: Re: Appearance Manager Gurus
>
> > From: "Umed Zokirov" <email@hidden> Date: Thu, 28 Feb 2002 11:31:48
> -0800
> > To: email@hidden Subject: Appearance Manager Gurus
> >
> > Hi there I would like to call GetThemeBrushAsColor function, however I
> don't
> > know where can I obtain the bit depth of the current port? Is there a
> > QuickDraw call for that?
> >
> > Thanks in advance, Umed _______________________________________________
> > carbon-development mailing list | email@hidden
> > Help/Unsubscribe/Archives:
> > http://www.lists.apple.com/mailman/listinfo/carbon-development Do not
> post
> > admin requests to the list. They will be ignored.
> >
>
> Hi,
> I know this works for OS 9 Carbon .. not sure about OS X
>
> UInt16 GetDepth(void)
> {
> GDHandle theDevice;
> CGrafPtr port;
>
> GetGWorld(&port, &theDevice);
> PixMapHandle screenPMapH = GetGWorldPixMap((GWorldPtr)port);
> return GetPixDepth(screenPMapH);
> }
>
> Paul
> _______________________________________________
> carbon-development mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/carbon-development
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.