• 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
Darken image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Darken image


  • Subject: Darken image
  • From: Andreas Monitzer <email@hidden>
  • Date: Thu, 19 Jul 2001 22:49:35 +0200

I've got an NSImage (a file icon) I'm successfully drawing using

[[self image] drawInRect:imageRect
fromRect:theRect
operation:NSCompositeSourceOver
fraction:1.0];

Now I want to "select" it (like NSToolbar, the Finder, the Dock and everybody else does), which means making it darker. How should I do that, while preserving transparency? I've tried several combinations of operations and fractions, nothing did what I need.

andy
--
Discussion forthcoming.


  • Follow-Ups:
    • Re: Darken image
      • From: Tom Waters <email@hidden>
  • Prev by Date: Re: UserDefaults and domain names
  • Next by Date: Re: Darken image
  • Previous by thread: Fwd: (same pb) Re: Double-clicking NSOutlineView
  • Next by thread: Re: Darken image
  • Index(es):
    • Date
    • Thread