• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
HIG-compliant image highlight
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HIG-compliant image highlight


  • Subject: HIG-compliant image highlight
  • From: Konstantin Anoshkin <email@hidden>
  • Date: Fri, 23 Dec 2005 17:21:13 +0300

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?

Thanks in advance.
Konstantin.

------------------------------------------------------------------------
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
_______________________________________________
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
  • Follow-Ups:
    • Re: HIG-compliant image highlight
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Image Name retrival from web-page
  • Next by Date: Re: KVO one-step listening but two-step notifying?
  • Previous by thread: Re: Image Name retrival from web-page
  • Next by thread: Re: HIG-compliant image highlight
  • Index(es):
    • Date
    • Thread