Mailing Lists: Apple Mailing Lists

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

Darken image



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.




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.