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



On 2002.02.28 14:31, "Umed Zokirov" <email@hidden> wrote:

> 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?


Umed,

Something like that would probably do the job:


SInt16 portDepth = 1;
PixMapHandle pixMapHandle;


pixMapHandle = ::GetPortPixMap(yourMacPort);

if (pixMapHandle != NULL) {

portDepth = ::GetPixDepth(pixMapHandle);
}


Cheers,

Eric
_______________________________________________
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.

References: 
 >Appearance Manager Gurus (From: "Umed Zokirov" <email@hidden>)



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.