Darken image
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.