yep, no official documentation; on the other hand, that was my first plugin, and i was just happy it worked without obvious explosions.

also i've used this technique with CGImageRefs without any obvious ill effects - it seems i always need to pass out a structure of stuff with an image or two in there, as opposed to a 'video stream' of images outputting from a patch's port.

it certainly raises some questions / thoughts about image handling / caching etc.

toby

On 6 Jul 2009, at 02:03, vade wrote:

Thats interesting. I would have assumed you would need to make QCimage providers for each item in the dictionary. Is this the proper way to handle multi image out via structure?

I wonder if thats a kosher implementation?

Just curious, I dont think Ive seen mentions of images in structure outputs or how to do it.




On Jul 5, 2009, at 6:53 PM, lists @ tobyz wrote:

Hello,

Related is a patch I released ages ago, which created NSImages and outputted them as objects in a NSDictionary, along with a load of metadata. It also turned out to be a lot simpler to code - just put the NSImage into a NSDictionary, output that and without any further ado it just works.

http://tobyz.net/tobyzstuff/diary/2008/02/spk-stringtoimagestructure

The source should be in the download if you're interested.

toby


On 5 Jul 2009, at 17:08, Adrian Lo wrote:

Dear all,

I'm having some trouble trying to proceed with this custom patch that I've got. The patch basically accepts some numeric input parameters which determines what data to grab from a URL, and renders the results into an image to be send out via the output port of the patch.

I've got the image generated nicely as a NSImage, and I'm not stuck on how to send the NSImage to the output port. Would really appreciate some pointers on this, as I'm not even sure if I should be using NSImage for such operations or not.

thanks in advance,

Adrian

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected] )
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/lists%40tobyz.net

This email sent to [email protected]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected] )
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/doktorp%40mac.com

This email sent to [email protected]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected] )
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/lists%40tobyz.net

This email sent to [email protected]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to