• 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
Painting into a NSImage / Combining two NSImage objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Painting into a NSImage / Combining two NSImage objects
      • From: Shawn Erickson <email@hidden>
    • Re: Painting into a NSImage / Combining two NSImage objects
      • From: "Alastair J.Houghton" <email@hidden>
  • Prev by Date: Re: plug-in problem
  • Next by Date: Re: Painting into a NSImage / Combining two NSImage objects
  • Previous by thread: Re: Cocoa/run sudo
  • Next by thread: Re: Painting into a NSImage / Combining two NSImage objects
  • Index(es):
    • Date
    • Thread