Compositing an NSImage on top of an NSView subclass
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