Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving the result of processing an image to another image



Starting with an image (CGImage, CIImage or NSImage), processing it with a composition, how does one save that to another image ?

You can have the composition have an image output which you read from the host program. If the composition is just using Core Image filters, then you can publish the output of the last filter as an output of the composition. And get the result of the filter chain as a NSImage using -valueForOutputKey

In case the composition is doing rendering instead of just image processing, you need to have it use Render-In-Image so that it renders to an image instead of to the screen. Then publish the Render In Image output as the an output of the composition and once again you can get the rendering of the composition as a NSImage using -valueForOutputKey.

Also, is there a way to filter compositions on the fact that they would render an image compared to an animation ?

No, Quartz Composer does not provide any functions for that. However, one way to do that is to give special names to the compositions, or put them in separate folders, or use the name, copyright and description info fields of the composition to store special keywords, you can look for after loading them.


________________________________________________________

Pierre-Olivier Latour                            email@hidden

Quartz Composer Architect                Graphic & Imaging Team


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden

References: 
 >Saving the result of processing an image to another image (From: Benoit Marchant <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.