| OS X - Development and Darwin Discussion and questions about development for Mac OS X. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Jul 02, 2008
Posts: 2
![]() |
Im trying to combine two NSImages. Currently I am using the following:
NSImage *newImage = [[NSImage alloc] initWithSize:NSMakeSize(imageBuffer.size.width, imageBuffer.size.height)]; [newImage lockFocus]; [imageBuffer compositeToPoint:NSMakePoint(0,0) operation:NSCompositeSourceOver]; [image compositeToPoint:NSMakePoint(50,50) operation:NSCompositeSourceOver]; [newImage unlockFocus]; 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: [imageBuffer lockFocus]; [image compositeToPoint:NSMakePoint(50,50) opeartion:NSCompositeSourceOver]; [imageBuffer unlockFocus]; |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| changing master images in aperture and iphoto | nick_harambee | OS X - Apps and Games | 1 | 03-30-2007 12:11 AM |
| importing additional images into a project | nick_harambee | OS X - Apps and Games | 0 | 03-28-2007 05:49 PM |
| Legal Use of Web Images | CarterSmith | Web Design and Hosting | 3 | 01-24-2007 05:28 AM |
| Getting images to show up in Dreamweaver | dziner | Web Design and Hosting | 4 | 07-22-2004 04:11 PM |
| iSight takes still images? | kika | Images, Graphic Design, and Digital Photography | 6 | 10-17-2003 09:09 PM |
All times are GMT -4. The time now is 03:10 AM.
Powered by vBulletin