Painting into a NSImage / Combining two NSImage objects
Painting into a NSImage / Combining two NSImage objects
- Subject: Painting into a NSImage / Combining two NSImage objects
- From: Markus Hanauska <email@hidden>
- Date: Tue, 2 Sep 2003 17:05:37 +0200
- Resent-date: Tue, 2 Sep 2003 17:09:21 +0200
- Resent-from: Markus Hanauska <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: email@hidden
Very simple question:
I have two NSImage objects, both are parts of my resource bundle.
I want to combine both two a third NSImage object, so that image1 is
overlayed by image2. How can I do that?
I'm only familiar to the Java way of doing things: You create an empty
image, you paint image1 into the empty image, you paint image two into
the (now not really) empty image at the desired position.
But I fail to see how you can actually paint one image into another one
or combine two images in case of NSImage. I've read the NSImage
documentation over and over again, but I fail to understand it.
It's such a simple task, two lines of code in Java, why can't it be
that simple as well in Cocoa?
--
Best Regards,
Markus Hanauska
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.