Composing a darker image
Composing a darker image
- Subject: Composing a darker image
- From: Tito Ciuro <email@hidden>
- Date: Fri, 22 Aug 2003 16:43:31 +0200
Hello,
I need to draw a darker image of a given TIFF-based image. The lighter
version was easy:
[image compositeToPoint: NSMakePoint(iconStatesRect.origin.x,
iconStatesRect.origin.y)
operation: NSCompositeSourceOver
fraction: 0.5];
A fraction of 1.0 represents the original picture, but I need to darken
the image a bit, just the way an icon reacts to a click on a toolbar,
for example. How can I do this?
Thanks,
-- Tito
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.