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: NSImage to output port of a custom patch



Yeah, this is a rather interesting way of doing it indeed. Simplifies a lot of things along the way too, as all you need is the generated NSImage being dumped into the NSDictionary and that's it.



On Jul 6, 2009, at 8:14 PM, lists @ tobyz wrote:

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@hidden )
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden


This email sent to email@hidden

_______________________________________________
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

_______________________________________________
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

_______________________________________________
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

_______________________________________________ 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: 
 >NSImage to output port of a custom patch (From: Adrian Lo <email@hidden>)
 >Re: NSImage to output port of a custom patch (From: "lists @ tobyz" <email@hidden>)
 >Re: NSImage to output port of a custom patch (From: vade <email@hidden>)
 >Re: NSImage to output port of a custom patch (From: "lists @ tobyz" <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.