• 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
Compositing an NSImage on top of an NSView subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compositing an NSImage on top of an NSView subclass


  • Subject: Compositing an NSImage on top of an NSView subclass
  • From: Damien Sorresso <email@hidden>
  • Date: Thu, 21 Jul 2005 10:50:32 -0500

I'm loading an `NSView' subclass from a NIB file. It's a pretty simple view with an `NSImageView' and a couple `NSTextField's. What I'd like to do is composite an `NSImage' over one of the elements in this view, specifically the `NSImageView'. But wherever they intersect, the image in the `NSImageView' ALWAYS comes out on top, no matter what compositing method I use. Is it possible to composite the image over elements instantiated in the NIB? Or should I just take the easy way out and use a second `NSImageView'? The image's position is fixed.

Also ``dissolveToPoint:fraction:" doesn't seem to respect my image's alpha. I just get black pixels around the image where it should be transparent unless I use `NSCompositeSourceOver' as the compositing method. And using `NSCompositeClear' gives me a black rectangle instead of transparent pixels.

Maybe I'm just misunderstanding the `NSImage' docs, but I'm pretty confused nonetheless.
--
Damien Sorresso
Macintosh Developer
Computer Infrastructure Support Services
Illinois State University
email@hidden
309.438.5777


_______________________________________________
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


  • Prev by Date: Re: cc1obj: warning: -Wuninitialized is not supported without -O <--- huh?
  • Next by Date: How do I add additional Attributes to a Core Data Entity?
  • Previous by thread: Re: cc1obj: warning: -Wuninitialized is not supported without -O <--- huh?
  • Next by thread: How do I add additional Attributes to a Core Data Entity?
  • Index(es):
    • Date
    • Thread