NSImage opacity or contrast (brightness)
NSImage opacity or contrast (brightness)
- Subject: NSImage opacity or contrast (brightness)
- From: Michael Marmarou <email@hidden>
- Date: Fri, 19 Aug 2005 10:54:56 -0700
I have an image I am drawing in an NSRect, but I need it to be much
lighter (like turning the opactiy down) because it's a background.
The image file cannot be modified. I see some sample code on the web
for icons, but it doesn't seem to be working for my NSImage. Also, I
see there is a dissolveToPoint method which is used, but again I
cannot get it to work.
- (void)drawBackground:(NSRect)rect
{
NSImage *image = [NSImage imageNamed:@"image"];
.......
[image drawInRect...];
}
I need that ....... to ligthen my image, or lower opacity, or whatever
gets that effect.
Thank you for any help,
Michael Marmarou
_______________________________________________
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