NSImage is driving me nuts !
NSImage is driving me nuts !
- Subject: NSImage is driving me nuts !
- From: Jerome Foucher <email@hidden>
- Date: Thu, 02 Dec 2004 11:01:43 +0100
Hello list,
I'm using NSImages to draw nice badges inside a custom NSCell
The problem is that the images I use do not draw properly. They seem not to care too much about their mask... Particularily, where the image has a white opaque border (that is, its mask is set so that the border is white), the image is blended inside the cell's background, and the border does not appear white. I use NSCompositeSourceOver for the operation parameter.
What's really driving me nuts is that if I use compositeToPoint:operation: the result is not the same as if I use drawInRect:fromRect:operation:fraction:
compositeToPoint:operation: seems to draw the images properly. However, I need to stretch some part of my image, so I can't use compositeToPoint.....
I read the NSImage documentation, but that doesn't really helped me.
Can anyone tell me if I'm really stupid, or if I've missed anything ?
Thanks
Jérome
_______________________________________________
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