[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sc-devel] image in views



Yeah, that's why I thought cross platform would be complicated. Nevertheless I think it's important to have access to pixel data in the lang, so a solution should be found. I guess action function is the best.

S.

On 8 Dec 2007, at 11:10, Sciss wrote:

keep in mind that SwingOSC is essentially asynchronous due to the OSC server/client structure. if one wants to design the thing to work with both GUI kits, this needs to be in consideration. it mainly affects the way _getting_ pixel data works. the possible models are due to a doneAction argument (similar to Buffer -> getn), or to require the code to be executed in a Routine (simliar to Server -> sendMsgSync).

ciao, -sciss-


Am 07.12.2007 um 02:26 schrieb Scott Wilson:

It would be fairly simple to wrap NSImage in an SC class, which would be efficient on OSX, but I don't know what's the best approach from a cross platform perspective. May some cross platform lib, or platform dependant implementations and an agreed upon interface?

S.

On 7 Dec 2007, at 01:00, thor wrote:


On 7 Dec 2007, at 00:37, Scott Wilson wrote:

Yes. An image class would be nice though, as one could e.g. manipulate pixel data in sclang, and pass images to and from SCQuartzComposerViews (possibly using it for processing!).

Yes, to get and set pixels on a canvas would be great, not to mention
if this could be hooked up with QuarzComposer.

Scott this would be awesome!


_______________________________________________
Sc-devel mailing list
Sc-devel@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-devel

_______________________________________________
Sc-devel mailing list
Sc-devel@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-devel

_______________________________________________
Sc-devel mailing list
Sc-devel@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-devel