Thread: Cocoa combine images?
07-02-2008, 05:59 PM #1
Cocoa combine images?
- Member Since
- Jul 02, 2008
Im trying to combine two NSImages. Currently I am using the following:
NSImage *newImage = [[NSImage alloc] initWithSize:NSMakeSize(imageBuffer.size.width, imageBuffer.size.height)];
[imageBuffer compositeToPoint:NSMakePoint(0,0) operation:NSCompositeSourceOver];
[image compositeToPoint:NSMakePoint(50,50) operation:NSCompositeSourceOver];
Which creates a third image and pastes the other two images into it.
Is their anyway to do this without having to create a new image? (IE just paste the second image onto the first image?) I have tried the following but it did not work:
[image compositeToPoint:NSMakePoint(50,50) opeartion:NSCompositeSourceOver];
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By 10driver in forum Switcher HangoutReplies: 1Last Post: 12-11-2014, 09:47 AM
By safarisurfer in forum Movies and VideoReplies: 4Last Post: 03-15-2012, 08:29 PM
By crazypotatos in forum Images, Graphic Design, and Digital PhotographyReplies: 4Last Post: 06-06-2010, 11:32 AM
By vanzant in forum Movies and VideoReplies: 4Last Post: 04-03-2010, 08:47 PM
By Leonardo in forum Apple DesktopsReplies: 4Last Post: 01-07-2010, 03:20 PM