How to send Ventuz an image via OSC?
Posted: 29 Jun 2017, 12:05
I'm new to C# programming, however have managed to create a Windows Form application using Visual Studio that sends text (and commands) to Ventuz using Ventuz.OSC.dll
Now I'd like to experiment with sending images to Ventuz, but I can't figure out how to read a PNG image and use the OscImage extension in my Windows Form application to send it... can someone please point me in the right direction here? Any help would be much appreciated!
Here's my working code for sending strings...
and
Now I'd like to experiment with sending images to Ventuz, but I can't figure out how to read a PNG image and use the OscImage extension in my Windows Form application to send it... can someone please point me in the right direction here? Any help would be much appreciated!
Here's my working code for sending strings...
Code: Select all
private void sendViaOsc(string bundle, string Arg1)
{
Ventuz.OSC.OscBundle d = new Ventuz.OSC.OscBundle(0, new Ventuz.OSC.OscElement(bundle, new OscUnicodeString (Arg1)));
oscManager1.Send(d);
}
Code: Select all
sendViaOsc("/stringViaOSC", stringToSend);