Re: HIG-compliant image highlight
Re: HIG-compliant image highlight
- Subject: Re: HIG-compliant image highlight
- From: "John C. Randolph" <email@hidden>
- Date: Fri, 23 Dec 2005 14:57:35 -0800
On Dec 23, 2005, at 6:21 AM, Konstantin Anoshkin wrote:
Is there "official" way to darken an NSImage ala NSButtonCell?
Currently I am doing it like this:
[[[NSColor blackColor] colorWithAlphaComponent: 0.46f] set];
NSRectFillUsingOperation(theRect, NSCompositeSourceAtop);
The alpha value of 0.46 seems to be very close, but I am sure
NSButtonCell highlights its image in a different way. Can anybody
give me a clue?
NSButtonCell uses alternative images if they're provided, so the aqua
buttons you see in their highlighted state are drawn with hand-
tweaked images.
-jcr
John C. Randolph <email@hidden> (408) 914-0013
Roaming Cocoa Engineer,
Available for your projects at great Expense and Inconvenience.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden