• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSImage is driving me nuts !
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSImage is driving me nuts ! [SOLUTION]
      • From: Jerome Foucher <email@hidden>
  • Prev by Date: Re: cross development on Jaguar
  • Next by Date: Re: cross development on Jaguar
  • Previous by thread: Binding & Validation
  • Next by thread: Re: NSImage is driving me nuts ! [SOLUTION]
  • Index(es):
    • Date
    • Thread